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 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 ReservedBlockingHttpConnectionConvert thisStreamingHttpConnectionto theBlockingHttpConnectionAPI.Convert thisStreamingHttpConnectionto theBlockingStreamingHttpConnectionAPI.default ReservedHttpConnectionConvert thisStreamingHttpConnectionto theHttpConnectionAPI.default CompletableMust be called (and subscribed to) to signify the reservation has completed afterReservableRequestConcurrencyController.tryReserve().Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefullyMethods inherited from interface io.servicetalk.http.api.FilterableStreamingHttpConnection
connectionContext, transportEventStreamMethods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosingMethods inherited from interface io.servicetalk.client.api.LoadBalancedConnection
requestFinished, tryRequest, tryReserveMethods inherited from interface io.servicetalk.client.api.ScoreSupplier
scoreMethods inherited from interface io.servicetalk.http.api.StreamingHttpRequester
close, closeGracefully, executionContext, httpResponseFactory, request
-
Method Details
-
asConnection
Description copied from interface:StreamingHttpConnectionConvert thisStreamingHttpConnectionto theHttpConnectionAPI.This API is provided for convenience. It is recommended that filters are implemented using the
StreamingHttpConnectionasynchronous API for maximum portability.- Specified by:
asConnectionin interfaceReservedStreamingHttpConnection- Specified by:
asConnectionin interfaceStreamingHttpConnection- Returns:
- a
HttpConnectionrepresentation of thisStreamingHttpConnection.
-
asBlockingStreamingConnection
Description copied from interface:StreamingHttpConnectionConvert thisStreamingHttpConnectionto theBlockingStreamingHttpConnectionAPI.This API is provided for convenience for a more familiar sequential programming model. It is recommended that filters are implemented using the
StreamingHttpConnectionasynchronous API for maximum portability.- Specified by:
asBlockingStreamingConnectionin interfaceReservedStreamingHttpConnection- Specified by:
asBlockingStreamingConnectionin interfaceStreamingHttpConnection- Returns:
- a
BlockingStreamingHttpConnectionrepresentation of thisStreamingHttpConnection.
-
asBlockingConnection
Description copied from interface:StreamingHttpConnectionConvert thisStreamingHttpConnectionto theBlockingHttpConnectionAPI.This API is provided for convenience for a more familiar sequential programming model. It is recommended that filters are implemented using the
StreamingHttpConnectionasynchronous API for maximum portability.- Specified by:
asBlockingConnectionin interfaceReservedStreamingHttpConnection- Specified by:
asBlockingConnectionin interfaceStreamingHttpConnection- Returns:
- a
BlockingHttpConnectionrepresentation of thisStreamingHttpConnection.
-
releaseAsync
Description copied from interface:ReservableRequestConcurrencyControllerMust be called (and subscribed to) to signify the reservation has completed afterReservableRequestConcurrencyController.tryReserve().- Specified by:
releaseAsyncin interfaceFilterableReservedStreamingHttpConnection- Specified by:
releaseAsyncin interfaceLoadBalancedConnection- Specified by:
releaseAsyncin interfaceReservableRequestConcurrencyController- Returns:
- a
Completablefor the release.
-