atomix / atomix

A Kubernetes toolkit for building distributed applications using cloud native principles

Home Page:https://atomix.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(Blocking)AtomicLock should notifies for state changes.

franz1981 opened this issue · comments

Expected behavior

BlockingAtomicLock should notifies for state changes.

Actual behavior

BlockingAtomicLock isn't implementing DistributedPrimitive::addStateChangeListener and removeStateChangeListener, hence won't be able to add/remove (and, by consequence, notify) listeners.

Environment

  • Atomix: 3.1.7

@franz1981 can you provide a pull request with unit test?

Sure, will do it tomorrow :)