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