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.
  • Method Details

    • tryReserve

      boolean tryReserve()
      Deprecated.
      Attempts to reserve a connection for exclusive use until releaseAsync() 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 after tryReserve().
      Returns:
      a Completable for the release.