org.apache.accumulo.cloudtrace.instrument
Class CountSampler

java.lang.Object
  extended by org.apache.accumulo.cloudtrace.instrument.CountSampler
All Implemented Interfaces:
Sampler

public class CountSampler
extends Object
implements Sampler

Sampler that returns true every N calls.


Constructor Summary
CountSampler(long frequency)
           
 
Method Summary
 boolean next()
           
 
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()
Specified by:
next in interface Sampler


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.