public static class QuorumInfo.ReplicaState extends Object
| Constructor and Description |
|---|
ReplicaState(int replicaId, Uuid replicaDirectoryId, long logEndOffset, OptionalLong lastFetchTimestamp, OptionalLong lastCaughtUpTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object o) |
int | hashCode() |
OptionalLong | lastCaughtUpTimestamp()Return the last millisecond timestamp at which this replica was known to be caught up with the leader. |
OptionalLong | lastFetchTimestamp()Return the last millisecond timestamp that the leader received a fetch from this replica. |
long | logEndOffset()Return the logEndOffset known by the leader for this replica. |
Uuid | replicaDirectoryId()Return the directory id of the replica if configured, or Uuid.ZERO_UUID if not. |
int | replicaId()Return the ID for this replica. |
String | toString() |
public ReplicaState(int replicaId,
Uuid replicaDirectoryId,
long logEndOffset,
OptionalLong lastFetchTimestamp,
OptionalLong lastCaughtUpTimestamp)public int replicaId()
public Uuid replicaDirectoryId()
public long logEndOffset()
public OptionalLong lastFetchTimestamp()
public OptionalLong lastCaughtUpTimestamp()