类 CountEvictionPolicy<T>

java.lang.Object
org.apache.pulsar.functions.windowing.evictors.CountEvictionPolicy<T>
类型参数:
T - the type of event tracked by this policy.
所有已实现的接口:
EvictionPolicy<T,Long>

public class CountEvictionPolicy<T> extends Object implements EvictionPolicy<T,Long>
An eviction policy that tracks event counts and can evict based on a threshold count.
  • 字段详细资料

    • threshold

      protected final int threshold
    • currentCount

      protected final AtomicLong currentCount
  • 构造器详细资料

    • CountEvictionPolicy

      public CountEvictionPolicy(int count)
  • 方法详细资料