Class SamplingResponse
- java.lang.Object
-
- com.amazonaws.xray.strategy.sampling.SamplingResponse
-
public class SamplingResponse extends java.lang.Object
Represents the sampling decision output by the sampler. Used by the SDK to decide whether or not a segment should be emitted.
-
-
Constructor Summary
Constructors Constructor Description SamplingResponse()
SamplingResponse(boolean sampled)
SamplingResponse(boolean sampled, java.lang.String ruleName)
SamplingResponse(java.lang.String ruleName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getRuleName()
boolean
isSampled()
SamplingResponse
setSampled(boolean sampled)
-
-
-
Constructor Detail
-
SamplingResponse
public SamplingResponse(boolean sampled, java.lang.String ruleName)
- Parameters:
sampled
- the boolean sampling decisionruleName
- the name of the rule used to make the sampling decision
-
SamplingResponse
public SamplingResponse(java.lang.String ruleName)
-
SamplingResponse
public SamplingResponse(boolean sampled)
-
SamplingResponse
public SamplingResponse()
-
-
Method Detail
-
isSampled
public boolean isSampled()
-
getRuleName
public java.util.Optional<java.lang.String> getRuleName()
-
setSampled
public SamplingResponse setSampled(boolean sampled)
-
-