Class DeploymentCreateProcessor
java.lang.Object
io.camunda.zeebe.engine.processing.deployment.DeploymentCreateProcessor
- All Implemented Interfaces:
DistributedTypedRecordProcessor<DeploymentRecord>,TypedRecordProcessor<DeploymentRecord>
public final class DeploymentCreateProcessor
extends Object
implements DistributedTypedRecordProcessor<DeploymentRecord>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.processing.streamprocessor.TypedRecordProcessor
TypedRecordProcessor.ProcessingError -
Constructor Summary
ConstructorsConstructorDescriptionDeploymentCreateProcessor(ProcessingState processingState, BpmnBehaviors bpmnBehaviors, Writers writers, KeyGenerator keyGenerator, FeatureFlags featureFlags, CommandDistributionBehavior distributionBehavior) -
Method Summary
Modifier and TypeMethodDescriptionvoidProcess a command that has been distributed.voidprocessNewCommand(TypedRecord<DeploymentRecord> command) Process a command that is not distributed yettryHandleError(TypedRecord<DeploymentRecord> 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
-
DeploymentCreateProcessor
public DeploymentCreateProcessor(ProcessingState processingState, BpmnBehaviors bpmnBehaviors, Writers writers, KeyGenerator keyGenerator, FeatureFlags featureFlags, CommandDistributionBehavior distributionBehavior)
-
-
Method Details
-
processNewCommand
Description copied from interface:DistributedTypedRecordProcessorProcess a command that is not distributed yet- Specified by:
processNewCommandin interfaceDistributedTypedRecordProcessor<DeploymentRecord>- 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<DeploymentRecord>- Parameters:
command- the already distributed command to process
-
tryHandleError
public TypedRecordProcessor.ProcessingError tryHandleError(TypedRecord<DeploymentRecord> command, Throwable error) Description copied from interface:TypedRecordProcessorTry to handle an error that occurred during processing.- Specified by:
tryHandleErrorin interfaceTypedRecordProcessor<DeploymentRecord>- 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.
-