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(com.google.cloud.Timestamp time)
Returns the estimated throughput for a specified time.
|
void |
update(com.google.cloud.Timestamp timeOfRecords,
T element)
Updates the estimator with the size of the records.
|
void update(com.google.cloud.Timestamp timeOfRecords,
T element)
timeOfRecords - the committed timestamp of the recordselement - the element to estimate the byte size ofdefault double get()
double getFrom(com.google.cloud.Timestamp time)
time - the specified timestamp to check throughput