Package io.atomix.raft.protocol
Class ConfigureRequest
java.lang.Object
io.atomix.raft.protocol.AbstractRaftRequest
io.atomix.raft.protocol.ConfigureRequest
- All Implemented Interfaces:
RaftMessage,RaftRequest
Configuration installation request.
Configuration requests are special requests that aid in installing committed configurations to passive and reserve members of the cluster. Prior to the start of replication from an active member to a passive or reserve member, the active member must update the passive/reserve member's configuration to ensure it is in the expected state.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHeartbeat request builder. -
Constructor Summary
ConstructorsConstructorDescriptionConfigureRequest(long term, String leader, long index, long timestamp, Collection<RaftMember> newMembers, Collection<RaftMember> oldMembers) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigureRequest.Builderbuilder()Returns a new configuration request builder.booleanfrom()inthashCode()longindex()Returns the configuration index.leader()Returns the requesting leader address.Returns the configuration members.Returns the configuration members.longterm()Returns the requesting node's current term.longReturns the configuration timestamp.toString()
-
Constructor Details
-
ConfigureRequest
public ConfigureRequest(long term, String leader, long index, long timestamp, Collection<RaftMember> newMembers, Collection<RaftMember> oldMembers)
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
builder
Returns a new configuration request builder.- Returns:
- A new configuration request builder.
-
term
public long term()Returns the requesting node's current term.- Returns:
- The requesting node's current term.
-
leader
Returns the requesting leader address.- Returns:
- The leader's address.
-
index
public long index()Returns the configuration index.- Returns:
- The configuration index.
-
timestamp
public long timestamp()Returns the configuration timestamp.- Returns:
- The configuration timestamp.
-
newMembers
Returns the configuration members.- Returns:
- The configuration members.
-
oldMembers
Returns the configuration members.- Returns:
- The configuration members.
-
from
-