A
- a representation of an action command that is shared across all actions in the saga. This is typically a generic type, such as Json, or if using Avro serialization, SpecificRecord or GenericRecordpublic class ActionCommand<A> extends Object
ActionCommand
is a data class with the information needed:
Modifier and Type | Field and Description |
---|---|
String |
actionType
Every action processor has an associated action type.
|
A |
command
An action command, expressed in a generic type
A , that the action processor is able to decode. |
io.simplesource.api.CommandId |
commandId
The command Id is the unique identifier for an action command.
|
Constructor and Description |
---|
ActionCommand() |
Modifier and Type | Method and Description |
---|---|
static <A> ActionCommand<A> |
of(A command,
String actionType)
Static constructor for action commands
|
public final io.simplesource.api.CommandId commandId
This means that:
public final A command
A
, that the action processor is able to decode.public final String actionType
public static <A> ActionCommand<A> of(A command, String actionType)
A
- a representation of an action command that is shared across all actions in the saga. This is typically a generic type, such as Json, or if using Avro serialization, SpecificRecord or GenericRecordcommand
- the action command, expressed in a generic type A
, that the action processor is able to decodeactionType
- the action type, which determines which action processor is used to process the actionCopyright © 2019. All rights reserved.