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 ActionRequest<A> extends Object
The action request topic is the topic for actionCommand.actionType
action type (note that each action type has its own set of request and respense topics).
The action processor for this action type consumes this request, starts processing the action, and publishes an ActionResponse
when processing is complete.
The action request and response is essentially the interface between the saga coordinator and the action processor. Although the saga coordinator and action processor can be hosted in
different processes, they must share the same A
type, and also must have Serdes that are compatible with each other.
Modifier and Type | Field and Description |
---|---|
ActionCommand<A> |
actionCommand
The Action command specifies the details of the command required for processing by the action processor.
|
ActionId |
actionId
The action id uniquely identifies an action in the saga dependency graph.
|
Boolean |
isUndo
Indicates whether or not this action is processing in undo (compensation) mode.
|
SagaId |
sagaId
The saga id uniquely identifies the saga, and is used as the key for the action request and responses.
|
Constructor and Description |
---|
ActionRequest() |
public final SagaId sagaId
public final ActionId actionId
public final ActionCommand<A> actionCommand
public final Boolean isUndo
Copyright © 2019. All rights reserved.