Interface ReservableRequestConcurrencyController
- All Superinterfaces:
RequestConcurrencyController
@Deprecated
public interface ReservableRequestConcurrencyController
extends RequestConcurrencyController
Deprecated.
This interface is not used by ServiceTalk internal code anymore and will be removed in the future
releases. If you depend on it, consider replicating this implementation in your codebase or reach out to us
explaining the use-case.
A
RequestConcurrencyController
that also allows to tryReserve()
a connection for exclusive use.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.servicetalk.client.api.internal.RequestConcurrencyController
RequestConcurrencyController.Result
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Must be called (and subscribed to) to signify the reservation has completed aftertryReserve()
.boolean
Deprecated.Attempts to reserve a connection for exclusive use untilreleaseAsync()
is called.Methods inherited from interface io.servicetalk.client.api.internal.RequestConcurrencyController
requestFinished, tryRequest
-
Method Details
-
tryReserve
boolean tryReserve()Deprecated.Attempts to reserve a connection for exclusive use untilreleaseAsync()
is called.- Returns:
true
if this connection is available and reserved for performing a single request.
-
releaseAsync
Completable releaseAsync()Deprecated.Must be called (and subscribed to) to signify the reservation has completed aftertryReserve()
.- Returns:
- a
Completable
for the release.
-