Package io.aeron.cluster
Class NodeStateFile.CandidateTerm
java.lang.Object
io.aeron.cluster.NodeStateFile.CandidateTerm
- Enclosing class:
- NodeStateFile
Wrapper class for the candidate term.
-
Method Summary
Modifier and TypeMethodDescriptionlongGets the current candidateTermId.longGet the log position of the latest candidateTermId update.longGet the timestamp of the latest candidateTermId update.
-
Method Details
-
candidateTermId
public long candidateTermId()Gets the current candidateTermId.- Returns:
- the candidateTermId.
-
timestamp
public long timestamp()Get the timestamp of the latest candidateTermId update.- Returns:
- epoch timestamp in ms.
-
logPosition
public long logPosition()Get the log position of the latest candidateTermId update.- Returns:
- log position.
-