Class ProcessingContext
java.lang.Object
io.camunda.zeebe.engine.processing.streamprocessor.ProcessingContext
- All Implemented Interfaces:
ReadonlyProcessingContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabortCondition(BooleanSupplier abortCondition) actor(ActorControl actor) commandResponseWriter(CommandResponseWriter commandResponseWriter) voidvoideventApplier(EventApplier eventApplier) eventCache(RecordValues recordValues) getActor()intlistener(StreamProcessorListener streamProcessorListener) logStreamReader(LogStreamReader logStreamReader) logStreamWriter(TypedStreamWriter logStreamWriter) maxFragmentSize(int maxFragmentSize) processorMode(StreamProcessorMode streamProcessorMode) recordProcessorMap(RecordProcessorMap recordProcessorMap) transactionContext(TransactionContext transactionContext) zeebeState(ZeebeDbState zeebeState)
-
Constructor Details
-
ProcessingContext
public ProcessingContext()
-
-
Method Details
-
actor
-
logStream
-
logStreamReader
-
eventCache
-
recordProcessorMap
-
zeebeState
-
transactionContext
-
abortCondition
-
logStreamWriter
-
commandResponseWriter
-
getCommandResponseWriter
-
listener
-
maxFragmentSize
-
eventApplier
-
processorMode
-
getKeyGeneratorControls
-
getLastProcessedPositionState
-
getActor
- Specified by:
getActorin interfaceReadonlyProcessingContext- Returns:
- the actor on which the processing runs
-
getLogStream
- Specified by:
getLogStreamin interfaceReadonlyProcessingContext- Returns:
- the logstream, on which the processor runs
-
getLogStreamReader
- Specified by:
getLogStreamReaderin interfaceReadonlyProcessingContext- Returns:
- the reader, which is used by the processor to read next events
-
getMaxFragmentSize
public int getMaxFragmentSize()- Specified by:
getMaxFragmentSizein interfaceReadonlyProcessingContext- Returns:
- the maximum fragment size we can write and read this contains the record metadata and record value etc.
-
getLogStreamWriter
- Specified by:
getLogStreamWriterin interfaceReadonlyProcessingContext- Returns:
- the actual log stream writer, used to write any record
-
getWriters
- Specified by:
getWritersin interfaceReadonlyProcessingContext- Returns:
- the specific writers, like command, response, etc
-
getRecordValues
- Specified by:
getRecordValuesin interfaceReadonlyProcessingContext- Returns:
- the pool, which contains the mapping from ValueType to UnpackedObject (record)
-
getRecordProcessorMap
- Specified by:
getRecordProcessorMapin interfaceReadonlyProcessingContext- Returns:
- the map of processors, which are executed during processing
-
getZeebeState
- Specified by:
getZeebeStatein interfaceReadonlyProcessingContext- Returns:
- the state, where the data is stored during processing
-
getTransactionContext
- Specified by:
getTransactionContextin interfaceReadonlyProcessingContext- Returns:
- the transaction context for the current actor
-
getAbortCondition
- Specified by:
getAbortConditionin interfaceReadonlyProcessingContext- Returns:
- condition which indicates, whether the processing should stop or not
-
getEventApplier
- Specified by:
getEventApplierin interfaceReadonlyProcessingContext- Returns:
- the consumer of events to apply their state changes
-
getStreamProcessorListener
-
enableLogStreamWriter
public void enableLogStreamWriter() -
disableLogStreamWriter
public void disableLogStreamWriter() -
getProcessorMode
-