Class TimeTriggerPolicy<T extends Serializable>

    • Constructor Detail

      • TimeTriggerPolicy

        public TimeTriggerPolicy​(long millis)
    • Method Detail

      • track

        public void track​(Event<T> event)
        Description copied from interface: TriggerPolicy
        Tracks the event and could use this to invoke the trigger.
        Parameters:
        event - the input event
      • reset

        public void reset()
        Description copied from interface: TriggerPolicy
        resets the trigger policy.
      • shutdown

        public void shutdown()
        Description copied from interface: TriggerPolicy
        Any clean up could be handled here.
      • getState

        public Void getState()
        Description copied from interface: TriggerPolicy
        Return runtime state to be checkpointed by the framework for restoring the trigger policy in case of failures.
        Returns:
        the state
      • restoreState

        public void restoreState​(Void state)
        Description copied from interface: TriggerPolicy
        Restore the trigger policy from the state that was earlier checkpointed by the framework.
        Parameters:
        state - the state