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