public class ThroughputCalculator extends Object
Constructor and Description |
---|
ThroughputCalculator(Clock clock) |
Modifier and Type | Method and Description |
---|---|
long |
calculateThroughput() |
long |
calculateThroughput(long dataSize,
long time) |
void |
incomingDataSize(long receivedDataSize) |
void |
pauseMeasurement()
Mark when the time should not be taken into account.
|
void |
resumeMeasurement()
Mark when the time should be included to the throughput calculation.
|
public ThroughputCalculator(Clock clock)
public void incomingDataSize(long receivedDataSize)
public void pauseMeasurement()
public void resumeMeasurement()
public long calculateThroughput()
public long calculateThroughput(long dataSize, long time)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.