Class WFTBuffer


  • public class WFTBuffer
    extends java.lang.Object
    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 Summary

      Constructors 
      Constructor Description
      WFTBuffer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addEvent​(io.temporal.api.history.v1.HistoryEvent event, boolean hasNextEvent)  
      java.util.List<io.temporal.api.history.v1.HistoryEvent> fetch()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WFTBuffer

        public WFTBuffer()
    • Method Detail

      • 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
      • fetch

        public java.util.List<io.temporal.api.history.v1.HistoryEvent> fetch()