程序包 com.jackmeng

类 NaiveSampler<T>

java.lang.Object
com.jackmeng.NaiveSampler<T>
类型参数:
T - the type of the data to sample back as
所有已实现的接口:
Consumer<T>

public class NaiveSampler<T> extends Object implements Consumer<T>
Samples data through a time based periodc
作者:
Jack Meng
  • 字段详细资料

    • sampleRate

      private final int sampleRate
    • callback

      private final Callback<Void,T> callback
    • counter

      private int counter
  • 构造器详细资料

    • NaiveSampler

      public NaiveSampler(int sampleRate, Callback<Void,T> callback)
  • 方法详细资料