java.lang.Object
com.amazonaws.xray.strategy.sampling.reservoir.CentralizedReservoir
public class CentralizedReservoir
extends Object
-
Constructor Summary
Constructors
-
Method Summary
long
long
long
long
boolean
boolean
boolean
boolean
void
update(com.amazonaws.services.xray.model.SamplingRule r)
void
update(com.amazonaws.services.xray.model.SamplingTargetDocument target,
Instant now)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CentralizedReservoir
public CentralizedReservoir(long capacity)
-
Method Details
-
update
public void update(com.amazonaws.services.xray.model.SamplingRule r)
-
isExpired
public boolean isExpired(Instant now)
-
isBorrow
public boolean isBorrow(Instant now)
-
isStale
public boolean isStale(Instant now)
-
update
public void update(com.amazonaws.services.xray.model.SamplingTargetDocument target,
Instant now)
-
-
getQuota
public long getQuota()
-
getUsed
public long getUsed()
-
getCurrentEpoch
public long getCurrentEpoch()
-
getInterval
public long getInterval()