Class ProcessingStateMachine
- java.lang.Object
-
- io.zeebe.engine.processing.streamprocessor.ProcessingStateMachine
-
public final class ProcessingStateMachine extends Object
Represents the processing state machine, which is executed on normal processing.+-----------------+ +--------------------+ | | | | exception | readNextEvent() |------------>| processEvent() |------------------+ | | | | v +-----------------+ +--------------------+ +---------------+ ^ | | |------+ | | +-------------->| onError() | | exception | | | exception | |<-----+ | +-------v-------------+ +---------------+ | | | | | | writeEvent() | | | | |<----------------+ +----------------------+ +---------------------+ | | | | executeSideEffects() | v | | +----------------------+ +----------------------+ | | ^ | updateState() | +--------------------| | +----------------------+ ^ | | | exception | | +---------v----+ | | | onError() | | | +--------------+ ^ | | | exception +-----+
-
-
Field Summary
Fields Modifier and Type Field Description protected RecordMetadatametadataprotected TypedResponseWriterImplresponseWriterprotected ZeebeStatezeebeState
-
Constructor Summary
Constructors Constructor Description ProcessingStateMachine(ProcessingContext context, BooleanSupplier shouldProcessNext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLastSuccessfulProcessedEventPosition()longgetLastWrittenEventPosition()booleanisMakingProgress()voidsetSideEffectProducer(SideEffectProducer sideEffectProducer)voidstartProcessing(long lastReprocessedPosition)
-
-
-
Field Detail
-
zeebeState
protected final ZeebeState zeebeState
-
metadata
protected final RecordMetadata metadata
-
responseWriter
protected final TypedResponseWriterImpl responseWriter
-
-
Constructor Detail
-
ProcessingStateMachine
public ProcessingStateMachine(ProcessingContext context, BooleanSupplier shouldProcessNext)
-
-
Method Detail
-
setSideEffectProducer
public void setSideEffectProducer(SideEffectProducer sideEffectProducer)
-
getLastSuccessfulProcessedEventPosition
public long getLastSuccessfulProcessedEventPosition()
-
getLastWrittenEventPosition
public long getLastWrittenEventPosition()
-
isMakingProgress
public boolean isMakingProgress()
-
startProcessing
public void startProcessing(long lastReprocessedPosition)
-
-