@Internal
public interface ThroughputEstimator<T>
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
default double |
get()
Returns the estimated throughput for now.
|
double |
getFrom(org.joda.time.Instant time)
Returns the estimated throughput for a specified time.
|
void |
update(org.joda.time.Instant timeOfRecords,
T element)
Updates the estimator with the size of the records.
|
void update(org.joda.time.Instant timeOfRecords,
T element)
timeOfRecords - the committed timestamp of the recordselement - the element to estimate the byte size ofdefault double get()
double getFrom(org.joda.time.Instant time)
time - the specified timestamp to check throughput