public interface LeaderLatchListener
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
void isLeader()
notLeader() to also be called.void notLeader()
isLeader() to also be called.Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.