Interface StateMachineCommand
- All Superinterfaces:
Immutable
- All Known Subinterfaces:
RaftCommand,StateCommand
- All Known Implementing Classes:
AbortTransactionPayload,AbstractIdentifiablePayload,AbstractRaftCommand,AbstractStateCommand,CloseLocalHistoryPayload,CommitTransactionPayload,CommitTransactionPayload.CandidateTransaction,CreateLocalHistoryPayload,DisableTrackingPayload,IdentifiablePayload,NoopPayload,Payload,PurgeLocalHistoryPayload,PurgeTransactionPayload,ServerConfigurationPayload,SkipTransactionsPayload,VotingConfig
@NonNullByDefault
public sealed interface StateMachineCommand
extends Immutable
permits RaftCommand, StateCommand, Payload
A command for the RAFT Finite State Machine. It can be either a
RaftCommand or a StateCommand.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRead aStateMachineCommandfrom aDataInput.static interfaceA combination of aStateMachineCommand.Readerand aStateMachineCommand.Writerfor a concreteStateMachineCommandtype, as indicated byStateMachineCommand.Support.commandType().static interfaceWrite aStateMachineCommandto aDataOutput. -
Method Summary
-
Method Details
-
toSerialForm
Returns theSerializableform. Returned object mustreadResolve()into an equivalent object.- Returns:
- the
Serializableform
-