Class SlidingCountWindowStrategy<T>

  • All Implemented Interfaces:
    WindowStrategy<T>

    public class SlidingCountWindowStrategy<T>
    extends BaseWindowStrategy<T>
    This class represents sliding window strategy based on the sliding window count and sliding interval count from the given slidingCountWindow configuration.
    • Constructor Detail

      • SlidingCountWindowStrategy

        public SlidingCountWindowStrategy​(WindowConfig slidingCountWindow)
    • Method Detail

      • getTriggerPolicy

        public TriggerPolicy<T,​?> getTriggerPolicy​(TriggerHandler triggerHandler,
                                                         EvictionPolicy<T,​?> evictionPolicy)
        Returns a TriggerPolicy which triggers for every count of given sliding window.
      • getEvictionPolicy

        public EvictionPolicy<T,​?> getEvictionPolicy()
        Returns an EvictionPolicy instance which evicts elements after a count of given window length.