Interface WindowStrategy<T>
-
- All Known Implementing Classes:
BaseWindowStrategy
,SlidingCountWindowStrategy
,SlidingDurationWindowStrategy
,TumblingCountWindowStrategy
,TumblingDurationWindowStrategy
public interface WindowStrategy<T>
Strategy for windowing which will have respective trigger and eviction policies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EvictionPolicy<T,?>
getEvictionPolicy()
Returns anEvictionPolicy
instance for this strategy with the given configuration.TriggerPolicy<T,?>
getTriggerPolicy(TriggerHandler triggerHandler, EvictionPolicy<T,?> evictionPolicy)
Returns aTriggerPolicy
by creating withtriggerHandler
andevictionPolicy
with the given configuration.
-
-
-
Method Detail
-
getTriggerPolicy
TriggerPolicy<T,?> getTriggerPolicy(TriggerHandler triggerHandler, EvictionPolicy<T,?> evictionPolicy)
Returns aTriggerPolicy
by creating withtriggerHandler
andevictionPolicy
with the given configuration.
-
getEvictionPolicy
EvictionPolicy<T,?> getEvictionPolicy()
Returns anEvictionPolicy
instance for this strategy with the given configuration.
-
-