|Modifier and Type||Method and Description|
Get the election timer deadline, if currently running.
Force an immediate election timeout.
getKVDatabase, isLeaderLeaseActiveAt, isLeaderLeaseActiveNow, toString
public 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 running
Copyright © 2018. All rights reserved.