Package io.servicetalk.http.api
Interface ReservedStreamingHttpConnection
-
- All Superinterfaces:
AsyncCloseable,java.lang.AutoCloseable,FilterableReservedStreamingHttpConnection,FilterableStreamingHttpConnection,GracefulAutoCloseable,ListenableAsyncCloseable,StreamingHttpConnection,StreamingHttpRequester,StreamingHttpRequestFactory
public interface ReservedStreamingHttpConnection extends StreamingHttpConnection, FilterableReservedStreamingHttpConnection
A special type ofStreamingHttpConnectionfor the exclusive use of the caller ofStreamingHttpClient.reserveConnection(HttpRequestMetaData)andStreamingHttpClient.reserveConnection(HttpExecutionStrategy, HttpRequestMetaData).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReservedBlockingHttpConnectionasBlockingConnection()Convert thisStreamingHttpConnectionto theBlockingHttpConnectionAPI.ReservedBlockingStreamingHttpConnectionasBlockingStreamingConnection()Convert thisStreamingHttpConnectionto theBlockingStreamingHttpConnectionAPI.ReservedHttpConnectionasConnection()Convert thisStreamingHttpConnectionto theHttpConnectionAPI.-
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
-
Methods inherited from interface io.servicetalk.http.api.FilterableReservedStreamingHttpConnection
releaseAsync
-
Methods inherited from interface io.servicetalk.http.api.FilterableStreamingHttpConnection
connectionContext, transportEventStream
-
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose
-
Methods inherited from interface io.servicetalk.http.api.StreamingHttpConnection
close, closeGracefully, request
-
Methods inherited from interface io.servicetalk.http.api.StreamingHttpRequester
executionContext, httpResponseFactory, request
-
-
-
-
Method Detail
-
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.
-
-