Class DeploymentDistributeProcessor
- java.lang.Object
-
- io.zeebe.engine.processing.deployment.distribute.DeploymentDistributeProcessor
-
- All Implemented Interfaces:
StreamProcessorLifecycleAware,TypedRecordProcessor<DeploymentRecord>
public final class DeploymentDistributeProcessor extends Object implements TypedRecordProcessor<DeploymentRecord>
-
-
Constructor Summary
Constructors Constructor Description DeploymentDistributeProcessor(ActorControl actor, DeploymentsState deploymentsState, DeploymentDistributor deploymentDistributor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRecovered(ReadonlyProcessingContext context)Callback after reprocessing was successful and before regular processing beginsvoidprocessRecord(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, wait
-
Methods inherited from interface io.zeebe.engine.processing.streamprocessor.StreamProcessorLifecycleAware
onClose, onFailed, onPaused, onResumed
-
Methods inherited from interface io.zeebe.engine.processing.streamprocessor.TypedRecordProcessor
processRecord, processRecord
-
-
-
-
Constructor Detail
-
DeploymentDistributeProcessor
public DeploymentDistributeProcessor(ActorControl actor, DeploymentsState deploymentsState, DeploymentDistributor deploymentDistributor)
-
-
Method Detail
-
onRecovered
public void onRecovered(ReadonlyProcessingContext context)
Description copied from interface:StreamProcessorLifecycleAwareCallback after reprocessing was successful and before regular processing begins- Specified by:
onRecoveredin interfaceStreamProcessorLifecycleAware
-
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.
-
-