public interface TriggerPolicy<T>
Triggers the window calculations based on the policy.
Modifier and Type | Method and Description |
---|---|
void |
reset()
resets the trigger policy
|
void |
shutdown()
Any clean up could be handled here.
|
void |
start()
Starts the trigger policy.
|
void |
track(org.apache.storm.windowing.Event<T> event)
Tracks the event and could use this to invoke the trigger.
|
void track(org.apache.storm.windowing.Event<T> event)
Tracks the event and could use this to invoke the trigger.
event
- the input eventvoid reset()
resets the trigger policy
void start()
Starts the trigger policy. This can be used during recovery to start the triggers after recovery is complete.
void shutdown()
Any clean up could be handled here.
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.