Package io.camunda.zeebe.stream.impl
Class BufferedTaskResultBuilder
java.lang.Object
io.camunda.zeebe.stream.impl.BufferedTaskResultBuilder
- All Implemented Interfaces:
TaskResultBuilder
Implementation of
TaskResultBuilder that buffers the task results. After being done with
task execution the build() will turn the result into a immutable TaskResult,
which allows to process the result further.-
Field Summary
Fields inherited from interface io.camunda.zeebe.stream.api.scheduling.TaskResultBuilder
NULL_KEY -
Constructor Summary
ConstructorsConstructorDescriptionBufferedTaskResultBuilder(RecordBatchSizePredicate predicate, ScheduledCommandCache.StagedScheduledCommandCache cache) -
Method Summary
Modifier and TypeMethodDescriptionbooleanappendCommandRecord(long key, Intent intent, UnifiedRecordValue value) Appends a record to the resultbuild()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.stream.api.scheduling.TaskResultBuilder
appendCommandRecord
-
Constructor Details
-
BufferedTaskResultBuilder
public BufferedTaskResultBuilder(RecordBatchSizePredicate predicate, ScheduledCommandCache.StagedScheduledCommandCache cache)
-
-
Method Details
-
appendCommandRecord
Description copied from interface:TaskResultBuilderAppends a record to the result- Specified by:
appendCommandRecordin interfaceTaskResultBuilder- Returns:
- returns true if the record still fits into the result, false otherwise
-
build
- Specified by:
buildin interfaceTaskResultBuilder
-