public abstract class NonLeaderRole extends Role
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
getElectionTimeout()
Get the election timer deadline, if currently running.
|
void |
startElection()
Force an immediate election timeout.
|
getKVDatabase, toStringpublic Timestamp getElectionTimeout()
For a follower that is not a member of its cluster, this will return null because no election timer is running. For all other cases, this will return the time at which the election timer expires.
public void startElection()
IllegalStateException - if this role is no longer active or election timer is not runningCopyright © 2016. All rights reserved.