class OveruseDetector
extends java.lang.Object
Constructor and Description |
---|
OveruseDetector(OverUseDetectorOptions options,
@NotNull DiagnosticContext diagnosticContext) |
Modifier and Type | Method and Description |
---|---|
BandwidthUsage |
detect(double offset,
double tsDelta,
int numOfDeltas,
long nowMs)
Update the detection state based on the estimated inter-arrival time
delta offset.
|
BandwidthUsage |
getState()
Returns the current detector state.
|
public OveruseDetector(OverUseDetectorOptions options, @NotNull @NotNull DiagnosticContext diagnosticContext)
public BandwidthUsage detect(double offset, double tsDelta, int numOfDeltas, long nowMs)
timestampDelta
is the delta between the last
timestamp which the estimated offset is based on and the last timestamp
on which the last offset was based on, representing the time between
detector updates. numOfDeltas
is the number of deltas the offset
estimate is based on. Returns the state after the detection update.offset
- tsDelta
- numOfDeltas
- nowMs
- public BandwidthUsage getState()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.