Class DeploymentDistributeProcessor
java.lang.Object
io.camunda.zeebe.engine.processing.deployment.distribute.DeploymentDistributeProcessor
- All Implemented Interfaces:
StreamProcessorLifecycleAware,TypedRecordProcessor<DeploymentRecord>
public final class DeploymentDistributeProcessor
extends Object
implements TypedRecordProcessor<DeploymentRecord>
-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentDistributeProcessor(ProcessState processState, MessageStartEventSubscriptionState messageStartEventSubscriptionState, DeploymentResponder deploymentResponder, int partitionId, Writers writers, KeyGenerator keyGenerator) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessRecord(long position, TypedRecord<DeploymentRecord> event, TypedResponseWriter responseWriter, TypedStreamWriter streamWriter, Consumer<SideEffectProducer> sideEffect) 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.StreamProcessorLifecycleAware
onClose, onFailed, onPaused, onRecovered, onResumedMethods inherited from interface io.camunda.zeebe.engine.processing.streamprocessor.TypedRecordProcessor
processRecord, processRecord
-
Constructor Details
-
DeploymentDistributeProcessor
public DeploymentDistributeProcessor(ProcessState processState, MessageStartEventSubscriptionState messageStartEventSubscriptionState, DeploymentResponder deploymentResponder, int partitionId, Writers writers, KeyGenerator keyGenerator)
-
-
Method Details
-
processRecord
public void processRecord(long position, TypedRecord<DeploymentRecord> event, TypedResponseWriter responseWriter, TypedStreamWriter streamWriter, Consumer<SideEffectProducer> sideEffect) - Specified by:
processRecordin interfaceTypedRecordProcessor<DeploymentRecord>- Parameters:
position- the position of the current record to processevent- the record to processresponseWriter- the default side effect that can be used for sending responses.TypedResponseWriter.flush()must not be called in this method.sideEffect- consumer to replace the default side effect (response writer). Can be used to implement other types of side effects or composite side effects. If a composite side effect involving the response writer is used,TypedResponseWriter.flush()must be called in theSideEffectProducerimplementation.
-