Class ProcessingStateMachine
- java.lang.Object
-
- io.camunda.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 +-----+
-
-
Constructor Summary
Constructors Constructor Description ProcessingStateMachine(ProcessingContext context, BooleanSupplier shouldProcessNext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLastSuccessfulProcessedEventPosition()
long
getLastWrittenEventPosition()
boolean
isMakingProgress()
void
setSideEffectProducer(SideEffectProducer sideEffectProducer)
void
startProcessing(long lastProcessedPosition)
-
-
-
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 lastProcessedPosition)
-
-