类 WatermarkCountTriggerPolicy<T>

java.lang.Object
org.apache.pulsar.functions.windowing.triggers.WatermarkCountTriggerPolicy<T>
类型参数:
T - the type of event tracked by this policy.
所有已实现的接口:
TriggerPolicy<T,Long>

public class WatermarkCountTriggerPolicy<T> extends Object implements TriggerPolicy<T,Long>
A trigger policy that tracks event counts and sets the context for eviction policy to evict based on latest watermark time.
  • 构造器详细资料

  • 方法详细资料

    • track

      public void track(Event<T> event)
      从接口复制的说明: TriggerPolicy
      Tracks the event and could use this to invoke the trigger.
      指定者:
      track 在接口中 TriggerPolicy<T,Long>
      参数:
      event - the input event
    • reset

      public void reset()
      从接口复制的说明: TriggerPolicy
      resets the trigger policy.
      指定者:
      reset 在接口中 TriggerPolicy<T,Long>
    • start

      public void start()
      从接口复制的说明: TriggerPolicy
      Starts the trigger policy. This can be used during recovery to start the triggers after recovery is complete.
      指定者:
      start 在接口中 TriggerPolicy<T,Long>
    • shutdown

      public void shutdown()
      从接口复制的说明: TriggerPolicy
      Any clean up could be handled here.
      指定者:
      shutdown 在接口中 TriggerPolicy<T,Long>
    • getState

      public Long getState()
      从接口复制的说明: TriggerPolicy
      Return runtime state to be checkpointed by the framework for restoring the trigger policy in case of failures.
      指定者:
      getState 在接口中 TriggerPolicy<T,Long>
      返回:
      the state
    • restoreState

      public void restoreState(Long state)
      从接口复制的说明: TriggerPolicy
      Restore the trigger policy from the state that was earlier checkpointed by the framework.
      指定者:
      restoreState 在接口中 TriggerPolicy<T,Long>
      参数:
      state - the state
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object