|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LeaderLatchListener
A LeaderLatchListener can be used to be notified asynchronously about when the state of the LeaderLatch has changed. Note that just because you are in the middle of one of these method calls, it does not necessarily mean that hasLeadership() is the corresponding true/false value. It is possible for the state to change behind the scenes before these methods get called. The contract is that if that happens, you should see another call to the other method pretty quickly.
| Method Summary | |
|---|---|
void |
isLeader()
This is called when the LeaderLatch's state goes from hasLeadership = false to hasLeadership = true. |
void |
notLeader()
This is called when the LeaderLatch's state goes from hasLeadership = true to hasLeadership = false. |
| Method Detail |
|---|
void isLeader()
notLeader() to also be called.
void notLeader()
isLeader() to also be called.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||