public class Vote extends Object
Constructor and Description |
---|
Vote(int version,
long id,
long zxid,
long electionEpoch,
long peerEpoch,
QuorumPeer.ServerState state) |
Vote(long id,
long zxid) |
Vote(long id,
long zxid,
long peerEpoch) |
Vote(long id,
long zxid,
long electionEpoch,
long peerEpoch) |
Vote(long id,
long zxid,
long electionEpoch,
long peerEpoch,
QuorumPeer.ServerState state) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getElectionEpoch() |
long |
getId() |
long |
getPeerEpoch() |
QuorumPeer.ServerState |
getState() |
int |
getVersion() |
long |
getZxid() |
int |
hashCode() |
String |
toString() |
public Vote(long id, long zxid)
public Vote(long id, long zxid, long peerEpoch)
public Vote(long id, long zxid, long electionEpoch, long peerEpoch)
public Vote(int version, long id, long zxid, long electionEpoch, long peerEpoch, QuorumPeer.ServerState state)
public Vote(long id, long zxid, long electionEpoch, long peerEpoch, QuorumPeer.ServerState state)
public int getVersion()
public long getId()
public long getZxid()
public long getElectionEpoch()
public long getPeerEpoch()
public QuorumPeer.ServerState getState()
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.