public static interface RestrictionTracker.HasProgress
RestrictionTracker
s SHOULD implement this interface to improve auto-scaling and
splitting performance.Modifier and Type | Method and Description |
---|---|
RestrictionTracker.Progress |
getProgress()
A representation for the amount of known completed and known remaining work.
|
RestrictionTracker.Progress getProgress()
It is up to each restriction tracker to convert between their natural representation of
completed and remaining work and the double
representation. For example:
message bytes
that have processed and the number of
messages or number of message bytes
that are outstanding.
The work completed and work remaining must be of the same scale whether that be number of messages or number of bytes and should never represent two distinct unit types.