Class CommandProcessorImpl<T extends UnifiedRecordValue>
- java.lang.Object
-
- io.zeebe.engine.processing.streamprocessor.CommandProcessorImpl<T>
-
- All Implemented Interfaces:
CommandProcessor.CommandControl<T>,StreamProcessorLifecycleAware,TypedRecordProcessor<T>
public final class CommandProcessorImpl<T extends UnifiedRecordValue> extends Object implements TypedRecordProcessor<T>, CommandProcessor.CommandControl<T>
-
-
Constructor Summary
Constructors Constructor Description CommandProcessorImpl(KeyGenerator keyGenerator, CommandProcessor<T> commandProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaccept(Intent newState, T updatedValue)voidprocessRecord(TypedRecord<T> command, TypedResponseWriter responseWriter, TypedStreamWriter streamWriter)voidreject(RejectionType type, String reason)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.zeebe.engine.processing.streamprocessor.StreamProcessorLifecycleAware
onClose, onFailed, onPaused, onRecovered, onResumed
-
Methods inherited from interface io.zeebe.engine.processing.streamprocessor.TypedRecordProcessor
processRecord, processRecord
-
-
-
-
Constructor Detail
-
CommandProcessorImpl
public CommandProcessorImpl(KeyGenerator keyGenerator, CommandProcessor<T> commandProcessor)
-
-
Method Detail
-
processRecord
public void processRecord(TypedRecord<T> command, TypedResponseWriter responseWriter, TypedStreamWriter streamWriter)
- Specified by:
processRecordin interfaceTypedRecordProcessor<T extends UnifiedRecordValue>- See Also:
TypedRecordProcessor.processRecord(TypedRecord, TypedResponseWriter, TypedStreamWriter, Consumer)
-
accept
public long accept(Intent newState, T updatedValue)
- Specified by:
acceptin interfaceCommandProcessor.CommandControl<T extends UnifiedRecordValue>- Returns:
- the key of the entity
-
reject
public void reject(RejectionType type, String reason)
- Specified by:
rejectin interfaceCommandProcessor.CommandControl<T extends UnifiedRecordValue>
-
-