public class PerOperationSampler extends java.lang.Object implements Sampler
sample(String, long)
using the name of the operation, and maintains a specific
GuaranteedThroughputSampler
instance for each operation.Constructor and Description |
---|
PerOperationSampler(int maxOperations,
OperationSamplingParameters strategies) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release any resources used by the sampler.
|
SamplingStatus |
sample(java.lang.String operation,
long id) |
boolean |
update(OperationSamplingParameters strategies)
Updates the GuaranteedThroughputSampler for each operation
|
public PerOperationSampler(int maxOperations, OperationSamplingParameters strategies)
public boolean update(OperationSamplingParameters strategies)
strategies
- The parameters for operation samplingpublic SamplingStatus sample(java.lang.String operation, long id)