public class Ballot extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Ballot.PosHint |
static class |
Ballot.UnfoundPeerId |
| Constructor and Description |
|---|
Ballot() |
| Modifier and Type | Method and Description |
|---|---|
void |
grant(PeerId peerId) |
Ballot.PosHint |
grant(PeerId peerId,
Ballot.PosHint hint) |
boolean |
init(Configuration conf,
Configuration oldConf)
Init the ballot with current conf and old conf.
|
boolean |
isGranted()
Returns true when the ballot is granted.
|
public boolean init(Configuration conf, Configuration oldConf)
conf - current configurationoldConf - old configurationpublic Ballot.PosHint grant(PeerId peerId, Ballot.PosHint hint)
public void grant(PeerId peerId)
public boolean isGranted()
Copyright © 2024. All rights reserved.