public final class TumblingDurationWindowStrategy<T> extends BaseWindowStrategy<T>
This class represents tumbling window strategy based on the window duration from the given 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)
Returns a TriggerPolicy
which triggers for every given sliding duration.
triggerHandler
- evictionPolicy
- public EvictionPolicy<T> getEvictionPolicy()
Returns an EvictionPolicy
instance which evicts elements after given window duration.
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.