org.apache.accumulo.cloudtrace.instrument
Class CountSampler
java.lang.Object
org.apache.accumulo.cloudtrace.instrument.CountSampler
- All Implemented Interfaces:
- Sampler
public class CountSampler
- extends Object
- implements Sampler
Sampler that returns true every N calls.
Method Summary |
boolean |
next()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountSampler
public CountSampler(long frequency)
next
public boolean next()
- Specified by:
next
in interface Sampler
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.