Class WFTBuffer
java.lang.Object
io.temporal.internal.statemachines.WFTBuffer
This class buffers events between WorkflowTaskStarted events and return them in one chunk so any
kinds of look ahead and preloading can be implemented.
-
Constructor Details
-
WFTBuffer
public WFTBuffer()
-
-
Method Details
-
addEvent
public boolean addEvent(io.temporal.api.history.v1.HistoryEvent event, boolean hasNextEvent) - Returns:
- Should the buffer be fetched. true if a whole history for a workflow task is accumulated or events can't be attributed to a completed workflow task. The whole history includes the unprocessed history events before the WorkflowTaskStarted and the command events after the WorkflowTaskCompleted.
-
fetch
-