Package io.servicetalk.http.api
Interface ReservedStreamingHttpConnection
- All Superinterfaces:
AsyncCloseable,AutoCloseable,FilterableReservedStreamingHttpConnection,FilterableStreamingHttpConnection,GracefulAutoCloseable,ListenableAsyncCloseable,StreamingHttpConnection,StreamingHttpRequester,StreamingHttpRequestFactory
- All Known Subinterfaces:
FilterableStreamingHttpLoadBalancedConnection
- All Known Implementing Classes:
DelegatingFilterableStreamingHttpLoadBalancedConnection,HttpLoadBalancerFactory.DefaultFilterableStreamingHttpLoadBalancedConnection
public interface ReservedStreamingHttpConnection
extends StreamingHttpConnection, FilterableReservedStreamingHttpConnection
A special type of
StreamingHttpConnection for the exclusive use of the caller of
StreamingHttpClient.reserveConnection(HttpRequestMetaData).-
Method Summary
Modifier and TypeMethodDescriptionConvert thisStreamingHttpConnectionto theBlockingHttpConnectionAPI.Convert thisStreamingHttpConnectionto theBlockingStreamingHttpConnectionAPI.Convert thisStreamingHttpConnectionto theHttpConnectionAPI.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefullyMethods inherited from interface io.servicetalk.http.api.FilterableReservedStreamingHttpConnection
releaseAsyncMethods 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.http.api.StreamingHttpRequester
close, closeGracefully, executionContext, httpResponseFactory, request
-
Method Details
-
asConnection
ReservedHttpConnection 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 interfaceStreamingHttpConnection- Returns:
- a
HttpConnectionrepresentation of thisStreamingHttpConnection.
-
asBlockingStreamingConnection
ReservedBlockingStreamingHttpConnection 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 interfaceStreamingHttpConnection- Returns:
- a
BlockingStreamingHttpConnectionrepresentation of thisStreamingHttpConnection.
-
asBlockingConnection
ReservedBlockingHttpConnection 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 interfaceStreamingHttpConnection- Returns:
- a
BlockingHttpConnectionrepresentation of thisStreamingHttpConnection.
-