Interface CommandProcessor<T extends UnifiedRecordValue>
- All Known Implementing Classes:
CreateProcessInstanceProcessor,CreateProcessInstanceWithResultProcessor,JobCancelProcessor,JobCompleteProcessor,JobFailProcessor,JobRecurProcessor,JobThrowErrorProcessor,JobTimeOutProcessor,JobUpdateRetriesProcessor
public interface CommandProcessor<T extends UnifiedRecordValue>
High-level record processor abstraction that implements the common behavior of most
command-handling processors.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterAccept(TypedCommandWriter commandWriter, StateWriter stateWriter, long key, Intent intent, T value) default booleanonCommand(TypedRecord<T> command, CommandProcessor.CommandControl<T> commandControl) default booleanonCommand(TypedRecord<T> command, CommandProcessor.CommandControl<T> commandControl, Consumer<SideEffectProducer> sideEffect)
-
Method Details
-
onCommand
default boolean onCommand(TypedRecord<T> command, CommandProcessor.CommandControl<T> commandControl) -
onCommand
default boolean onCommand(TypedRecord<T> command, CommandProcessor.CommandControl<T> commandControl, Consumer<SideEffectProducer> sideEffect) -
afterAccept
default void afterAccept(TypedCommandWriter commandWriter, StateWriter stateWriter, long key, Intent intent, T value)
-