public interface ReservableRequestConcurrencyController extends RequestConcurrencyController
RequestConcurrencyController
that also allows to tryReserve()
a connection for exclusive use.RequestConcurrencyController.Result
Modifier and Type | Method and Description |
---|---|
Completable |
releaseAsync()
Must be called (and subscribed to) to signify the reservation has completed after
tryReserve() . |
boolean |
tryReserve()
Attempts to reserve a connection for exclusive use until
releaseAsync() is called. |
requestFinished, tryRequest
boolean tryReserve()
releaseAsync()
is called.true
if this connection is available and reserved for performing a single request.Completable releaseAsync()
tryReserve()
.Completable
for the release.