org.htrace.impl
Class CountSampler

java.lang.Object
  extended by org.htrace.impl.CountSampler
All Implemented Interfaces:
Sampler<Object>

public class CountSampler
extends Object
implements Sampler<Object>

Sampler that returns true every N calls.


Field Summary
 
Fields inherited from interface org.htrace.Sampler
ALWAYS, NEVER
 
Constructor Summary
CountSampler(long frequency)
           
 
Method Summary
 boolean next(Object info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountSampler

public CountSampler(long frequency)
Method Detail

next

public boolean next(Object info)
Specified by:
next in interface Sampler<Object>


Copyright © 2014. All Rights Reserved.