Class AllSamplingStrategy
- java.lang.Object
-
- com.amazonaws.xray.strategy.sampling.AllSamplingStrategy
-
- All Implemented Interfaces:
SamplingStrategy
public class AllSamplingStrategy extends java.lang.Object implements SamplingStrategy
A sampling strategy for whichshouldTracealways returns true. Use this sampling strategy to trace every request.
-
-
Constructor Summary
Constructors Constructor Description AllSamplingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisForcedSamplingSupported()Returns whether or not this sampling strategy supports 'forced sampling'.SamplingResponseshouldTrace(SamplingRequest samplingRequest)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.amazonaws.xray.strategy.sampling.SamplingStrategy
shutdown
-
-
-
-
Method Detail
-
shouldTrace
public SamplingResponse shouldTrace(SamplingRequest samplingRequest)
- Specified by:
shouldTracein interfaceSamplingStrategy
-
isForcedSamplingSupported
public boolean isForcedSamplingSupported()
Description copied from interface:SamplingStrategyReturns whether or not this sampling strategy supports 'forced sampling'. Forced sampling allows a segment's initial non-sampled decision to be later overriden to sampled. Supporting this feature requires that all segments, sampled or otherwise, be kept in memory for the duration of their existence. Not supporting this feature saves memory and computational capacity.- Specified by:
isForcedSamplingSupportedin interfaceSamplingStrategy- Returns:
- whether or not forced sampling is supported
-
-