T - The type of Event in the window (e.g. Tuple).public interface WindowLifecycleListener<T>
WindowManager| Modifier and Type | Method and Description |
|---|---|
default void |
onActivation(List<T> events,
List<T> newEvents,
List<T> expired,
Long referenceTime)
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)
EvictionPolicyevents - the expired eventsdefault void onActivation(List<T> events, List<T> newEvents, List<T> expired, Long referenceTime)
TriggerPolicyevents - 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 activationCopyright © 2017–2021 Apache Software Foundation. All rights reserved.