Class ResourceDeletionDeleteProcessor
java.lang.Object
io.camunda.zeebe.engine.processing.resource.ResourceDeletionDeleteProcessor
- All Implemented Interfaces:
DistributedTypedRecordProcessor<ResourceDeletionRecord>,TypedRecordProcessor<ResourceDeletionRecord>
public class ResourceDeletionDeleteProcessor
extends Object
implements DistributedTypedRecordProcessor<ResourceDeletionRecord>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.processing.streamprocessor.TypedRecordProcessor
TypedRecordProcessor.ProcessingError -
Constructor Summary
ConstructorsConstructorDescriptionResourceDeletionDeleteProcessor(Writers writers, KeyGenerator keyGenerator, ProcessingState processingState, CommandDistributionBehavior commandDistributionBehavior, BpmnBehaviors bpmnBehaviors) -
Method Summary
Modifier and TypeMethodDescriptionvoidProcess a command that has been distributed.voidProcess a command that is not distributed yettryHandleError(TypedRecord<ResourceDeletionRecord> command, Throwable error) Try to handle an error that occurred during processing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.engine.processing.streamprocessor.DistributedTypedRecordProcessor
processRecord
-
Constructor Details
-
ResourceDeletionDeleteProcessor
public ResourceDeletionDeleteProcessor(Writers writers, KeyGenerator keyGenerator, ProcessingState processingState, CommandDistributionBehavior commandDistributionBehavior, BpmnBehaviors bpmnBehaviors)
-
-
Method Details
-
processNewCommand
Description copied from interface:DistributedTypedRecordProcessorProcess a command that is not distributed yet- Specified by:
processNewCommandin interfaceDistributedTypedRecordProcessor<ResourceDeletionRecord>- Parameters:
command- the not yet distributed command to process
-
processDistributedCommand
Description copied from interface:DistributedTypedRecordProcessorProcess a command that has been distributed. Be aware to not distribute it again!- Specified by:
processDistributedCommandin interfaceDistributedTypedRecordProcessor<ResourceDeletionRecord>- Parameters:
command- the already distributed command to process
-
tryHandleError
public TypedRecordProcessor.ProcessingError tryHandleError(TypedRecord<ResourceDeletionRecord> command, Throwable error) Description copied from interface:TypedRecordProcessorTry to handle an error that occurred during processing.- Specified by:
tryHandleErrorin interfaceTypedRecordProcessor<ResourceDeletionRecord>- Parameters:
command- The command that was being processed when the error occurrederror- The error that occurred, and the processor should attempt to handle- Returns:
- The type of the processing error. Default:
TypedRecordProcessor.ProcessingError.UNEXPECTED_ERROR.
-