Interface WindowLifecycleListener<T>
-
- Type Parameters:
T- The type of Event in the window (e.g. Tuple).
public interface WindowLifecycleListener<T>A callback for expiry, activation of events tracked by theWindowManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidonActivation(java.util.List<T> events, java.util.List<T> newEvents, java.util.List<T> expired, java.lang.Long referenceTime)Called on activation of the window due to theTriggerPolicyvoidonExpiry(java.util.List<T> events)Called on expiry of events from the window due toEvictionPolicy
-
-
-
Method Detail
-
onExpiry
void onExpiry(java.util.List<T> events)
Called on expiry of events from the window due toEvictionPolicy- Parameters:
events- the expired events
-
onActivation
default void onActivation(java.util.List<T> events, java.util.List<T> newEvents, java.util.List<T> expired, java.lang.Long referenceTime)
Called on activation of the window due to theTriggerPolicy- Parameters:
events- the list of current events in the window.newEvents- the newly added events since last activation.expired- the expired events since last activation.referenceTime- the reference (event or processing) time that resulted in activation
-
-