org.htrace.impl
Class ProbabilitySampler

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

public class ProbabilitySampler
extends Object
implements Sampler<Object>


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

Field Detail

threshold

public final double threshold
Constructor Detail

ProbabilitySampler

public ProbabilitySampler(double threshold)
Method Detail

next

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


Copyright © 2014. All Rights Reserved.