Class LocalizedSamplingStrategy
- java.lang.Object
-
- com.amazonaws.xray.strategy.sampling.LocalizedSamplingStrategy
-
- All Implemented Interfaces:
SamplingStrategy
public class LocalizedSamplingStrategy extends java.lang.Object implements SamplingStrategy
-
-
Constructor Summary
Constructors Constructor Description LocalizedSamplingStrategy()
LocalizedSamplingStrategy(boolean forcedSamplingSupport)
LocalizedSamplingStrategy(@Nullable java.net.URL ruleLocation)
LocalizedSamplingStrategy(@Nullable java.net.URL ruleLocation, boolean forcedSamplingSupport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.net.URL
getSamplingManifestURL()
boolean
isForcedSamplingSupported()
Returns whether or not this sampling strategy supports 'forced sampling'.SamplingResponse
shouldTrace(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
-
-
-
-
Constructor Detail
-
LocalizedSamplingStrategy
public LocalizedSamplingStrategy()
-
LocalizedSamplingStrategy
public LocalizedSamplingStrategy(@Nullable java.net.URL ruleLocation)
-
LocalizedSamplingStrategy
public LocalizedSamplingStrategy(boolean forcedSamplingSupport)
-
LocalizedSamplingStrategy
public LocalizedSamplingStrategy(@Nullable java.net.URL ruleLocation, boolean forcedSamplingSupport)
-
-
Method Detail
-
getSamplingManifestURL
public @Nullable java.net.URL getSamplingManifestURL()
-
shouldTrace
public SamplingResponse shouldTrace(SamplingRequest samplingRequest)
- Specified by:
shouldTrace
in interfaceSamplingStrategy
-
isForcedSamplingSupported
public boolean isForcedSamplingSupported()
Description copied from interface:SamplingStrategy
Returns 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:
isForcedSamplingSupported
in interfaceSamplingStrategy
- Returns:
- whether or not forced sampling is supported
-
-