public interface Drainer<T>
extends rx.Observer<T>, rx.Producer
| Modifier and Type | Method and Description |
|---|---|
long |
surplus()
Returns the current best estimate of
|
long surplus()
currentExpected + numQueuedEmissions + numEmitted - totalRequested -
This value can then be subtracted from a request from downstream to estimate the number required from upstream.
Copyright © 2013–2015. All rights reserved.