public class CandidateState extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
grantVote(Endpoint address)
Persists vote for the endpoint during election.
|
boolean |
isMajorityGranted()
Returns true if majority of the votes are granted, false otherwise.
|
int |
majority()
Returns the number of expected majority of the votes.
|
int |
voteCount()
Returns current granted number of the votes.
|
public boolean grantVote(Endpoint address)
public int majority()
public int voteCount()
public boolean isMajorityGranted()
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.