edwardcapriolo / gossip

A Mavenized Apache V2 gossip implementation for Java
Apache License 2.0
160 stars 54 forks source link

Executor service and callback for state changes #4

Closed edwardcapriolo closed 9 years ago

edwardcapriolo commented 9 years ago

Currently users can get the dead and live list. Users should also be able to setup callbacks for cluster state notification.

edwardcapriolo commented 9 years ago

@joprice the code has been reformatted so people will only git blame you for your changes :)

edwardcapriolo commented 9 years ago

I require this for Nibiru's hinted handoff to be alerted when a node returns to life. I am going to go with just implementing a blocking callback. If someone wants to have the callback submit an event to an exectuor service that is fine but for the common case a sync-callback will probably fit the bill, and asking the gossiper to maintain an executor service and seems like it could be out of scope.

edwardcapriolo commented 9 years ago

Resolved in #5