public class ThroughputCalculator extends Object
| Constructor and Description |
|---|
ThroughputCalculator(org.apache.flink.util.clock.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(org.apache.flink.util.clock.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–2023 The Apache Software Foundation. All rights reserved.