public interface WindowLifecycleListener<T>
A callback for expiry, activation of events tracked by the WindowManager
| Modifier and Type | Method and Description |
|---|---|
void |
onActivation(List<T> events,
List<T> newEvents,
List<T> expired)
Called on activation of the window due to the
TriggerPolicy |
void |
onExpiry(List<T> events)
Called on expiry of events from the window due to
EvictionPolicy |
void onExpiry(List<T> events)
Called on expiry of events from the window due to EvictionPolicy
events - the expired eventsvoid onActivation(List<T> events, List<T> newEvents, List<T> expired)
Called on activation of the window due to the TriggerPolicy
events - the list of current events in the window.newEvents - the newly added events since last activation.expired - the expired events since last activation.Copyright © 2022 The Apache Software Foundation. All Rights Reserved.