Package io.servicetalk.http.api
Interface FilterableStreamingHttpLoadBalancedConnection
- All Superinterfaces:
AsyncCloseable
,AutoCloseable
,FilterableReservedStreamingHttpConnection
,FilterableStreamingHttpConnection
,GracefulAutoCloseable
,ListenableAsyncCloseable
,LoadBalancedConnection
,RequestConcurrencyController
,ReservableRequestConcurrencyController
,ReservedStreamingHttpConnection
,ScoreSupplier
,StreamingHttpConnection
,StreamingHttpRequester
,StreamingHttpRequestFactory
- All Known Implementing Classes:
DelegatingFilterableStreamingHttpLoadBalancedConnection
,HttpLoadBalancerFactory.DefaultFilterableStreamingHttpLoadBalancedConnection
public interface FilterableStreamingHttpLoadBalancedConnection
extends FilterableStreamingHttpConnection, LoadBalancedConnection, ReservedStreamingHttpConnection
A
FilterableStreamingHttpConnection
that supported filtering and implements the LoadBalancedConnection
contract.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.servicetalk.client.api.RequestConcurrencyController
RequestConcurrencyController.Result
-
Method Summary
Modifier and TypeMethodDescriptiondefault ReservedBlockingHttpConnection
Convert thisStreamingHttpConnection
to theBlockingHttpConnection
API.Convert thisStreamingHttpConnection
to theBlockingStreamingHttpConnection
API.default ReservedHttpConnection
Convert thisStreamingHttpConnection
to theHttpConnection
API.default Completable
Must be called (and subscribed to) to signify the reservation has completed afterReservableRequestConcurrencyController.tryReserve()
.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
Methods inherited from interface io.servicetalk.http.api.FilterableStreamingHttpConnection
connectionContext, transportEventStream
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosing
Methods inherited from interface io.servicetalk.client.api.LoadBalancedConnection
requestFinished, tryRequest, tryReserve
Methods inherited from interface io.servicetalk.client.api.ScoreSupplier
score
Methods inherited from interface io.servicetalk.http.api.StreamingHttpConnection
close, closeGracefully
Methods inherited from interface io.servicetalk.http.api.StreamingHttpRequester
executionContext, httpResponseFactory, request
-
Method Details
-
asConnection
Description copied from interface:StreamingHttpConnection
Convert thisStreamingHttpConnection
to theHttpConnection
API.This API is provided for convenience. It is recommended that filters are implemented using the
StreamingHttpConnection
asynchronous API for maximum portability.- Specified by:
asConnection
in interfaceReservedStreamingHttpConnection
- Specified by:
asConnection
in interfaceStreamingHttpConnection
- Returns:
- a
HttpConnection
representation of thisStreamingHttpConnection
.
-
asBlockingStreamingConnection
Description copied from interface:StreamingHttpConnection
Convert thisStreamingHttpConnection
to theBlockingStreamingHttpConnection
API.This API is provided for convenience for a more familiar sequential programming model. It is recommended that filters are implemented using the
StreamingHttpConnection
asynchronous API for maximum portability.- Specified by:
asBlockingStreamingConnection
in interfaceReservedStreamingHttpConnection
- Specified by:
asBlockingStreamingConnection
in interfaceStreamingHttpConnection
- Returns:
- a
BlockingStreamingHttpConnection
representation of thisStreamingHttpConnection
.
-
asBlockingConnection
Description copied from interface:StreamingHttpConnection
Convert thisStreamingHttpConnection
to theBlockingHttpConnection
API.This API is provided for convenience for a more familiar sequential programming model. It is recommended that filters are implemented using the
StreamingHttpConnection
asynchronous API for maximum portability.- Specified by:
asBlockingConnection
in interfaceReservedStreamingHttpConnection
- Specified by:
asBlockingConnection
in interfaceStreamingHttpConnection
- Returns:
- a
BlockingHttpConnection
representation of thisStreamingHttpConnection
.
-
releaseAsync
Description copied from interface:ReservableRequestConcurrencyController
Must be called (and subscribed to) to signify the reservation has completed afterReservableRequestConcurrencyController.tryReserve()
.- Specified by:
releaseAsync
in interfaceFilterableReservedStreamingHttpConnection
- Specified by:
releaseAsync
in interfaceLoadBalancedConnection
- Specified by:
releaseAsync
in interfaceReservableRequestConcurrencyController
- Returns:
- a
Completable
for the release.
-