public final class TumblingDurationWindowStrategy<T> extends BaseWindowStrategy<T>
slidingCountWindow
configuration. In
this strategy , window and sliding durations are equal.windowConfig
Constructor and Description |
---|
TumblingDurationWindowStrategy(WindowConfig tumblingDurationWindow) |
Modifier and Type | Method and Description |
---|---|
EvictionPolicy<T,?> |
getEvictionPolicy()
Returns an
EvictionPolicy instance which evicts elements after given window duration. |
TriggerPolicy<T,?> |
getTriggerPolicy(TriggerHandler triggerHandler,
EvictionPolicy<T,?> evictionPolicy)
Returns a
TriggerPolicy which triggers for every given sliding duration. |
public TumblingDurationWindowStrategy(WindowConfig tumblingDurationWindow)
public TriggerPolicy<T,?> getTriggerPolicy(TriggerHandler triggerHandler, EvictionPolicy<T,?> evictionPolicy)
TriggerPolicy
which triggers for every given sliding duration.public EvictionPolicy<T,?> getEvictionPolicy()
EvictionPolicy
instance which evicts elements after given window duration.Copyright © 2023 The Apache Software Foundation. All rights reserved.