These are chat archives for atomix/atomix
Hello guys, I am currently working on a project that I'd like to use the event functions of primitives for. With the latest 2.1.0-beta3 release, I am trying to execute the following code:
AtomicValue<Integer> value = atomix.getAtomicValue("test"); value.addListener(event -> System.out.println("Event fired.")); value.getAndSet(1);
From my understanding, this should print "Event fired." to the console as soon as the AtomicValueService applied the change. However, I do not see any output beeing printed at all, not my String and no error messages. Am I missing something?
DEBUG NettyMessagingService - localhost:5000 - No handler for message type data-partition-2-publish-11 from localhost:5000
atomix.primitivesService().lockBuilder("foo-distributed-lock").build()invoked on each node creates the same lock . Can i remain an object returned from the builder and use it or should i get lock from atomix each time i want to get it ?