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 interface
Read aStateMachineCommand
from aDataInput
.static interface
A combination of aStateMachineCommand.Reader
and aStateMachineCommand.Writer
for a concreteStateMachineCommand
type, as indicated byStateMachineCommand.Support.commandType()
.static interface
Write aStateMachineCommand
to aDataOutput
. -
Method Summary
-
Method Details
-
toSerialForm
Returns theSerializable
form. Returned object mustreadResolve()
into an equivalent object.- Returns:
- the
Serializable
form
-