Package io.atomix.raft.protocol
Class ForceConfigureRequest
java.lang.Object
io.atomix.raft.protocol.AbstractRaftRequest
io.atomix.raft.protocol.ForceConfigureRequest
- All Implemented Interfaces:
RaftMessage,RaftRequest
Request to change configuration forcefully without going through the joint consensus.
Unlike the ConfigureRequest, this request is not sent from a leader. A force
configuration is requested typically to remove a set of (unavailable) members when a quorum is
not possible without them.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHeartbeat request builder. -
Constructor Summary
ConstructorsConstructorDescriptionForceConfigureRequest(long term, long index, long timestamp, Set<RaftMember> newMembers, String from) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns a new configuration request builder.booleanfrom()inthashCode()longindex()Returns the configuration index.Returns the configuration members.longterm()Returns the requesting node's current term.longReturns the configuration timestamp.toString()
-
Constructor Details
-
ForceConfigureRequest
public ForceConfigureRequest(long term, long index, long timestamp, Set<RaftMember> newMembers, String from)
-
-
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.
-
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.
-
from
-