public interface ReplicationState
Modifier and Type | Interface and Description |
---|---|
static class |
ReplicationState.Mode
The different replication modes in which a partition replica can be in.
|
Modifier and Type | Method and Description |
---|---|
ReplicationState.Mode |
mode()
The replication mode of this partition replica.
|
long |
replicationSessionId()
The current replication session ID for this partition replica.
|
ReplicationState.Mode mode()
long replicationSessionId()
The current replication session ID for this partition replica. Used for coordinating transitions between pull and push replication mode by the leader and the follower.
The replication session ID is included in both the Fetch (pull replication) protocol and
the AppendRecords (push replication) protocol. It's incremented on the follower whenever the
leader requests a transition back to ReplicationState.Mode.PULL
.