Class StatefulWindowManager<T>

java.lang.Object
org.apache.storm.windowing.WindowManager<T>
org.apache.storm.windowing.StatefulWindowManager<T>
All Implemented Interfaces:
TriggerHandler

public class StatefulWindowManager<T> extends WindowManager<T>
Window manager that handles windows with state persistence.
  • Constructor Details

  • Method Details

    • compactWindow

      protected void compactWindow()
      Description copied from class: WindowManager
      expires events that fall out of the window every EXPIRE_EVENTS_THRESHOLD so that the window does not grow too big.
      Overrides:
      compactWindow in class WindowManager<T>
    • onTrigger

      public boolean onTrigger()
      Description copied from class: WindowManager
      The callback invoked by the trigger policy.
      Specified by:
      onTrigger in interface TriggerHandler
      Overrides:
      onTrigger in class WindowManager<T>
      Returns:
      true if the window was evaluated with at least one event in the window, false otherwise