Modifier and Type | Method and Description |
---|---|
LeaderElection.State |
LeaderElection.getState()
Get the current
state . |
static LeaderElection.State |
LeaderElection.State.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeaderElection.State[] |
LeaderElection.State.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
LeaderElection.Listener.onStateChanged(LeaderElection election,
LeaderElection.State oldState,
LeaderElection.State newState)
Called when the state of the leader election changed.
|
void |
LeaderElection.Adapter.onStateChanged(LeaderElection election,
LeaderElection.State oldState,
LeaderElection.State newState) |
Copyright © 2015. All rights reserved.