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 thisStreamingHttpConnection
to theBlockingHttpConnection
API.Convert thisStreamingHttpConnection
to theBlockingStreamingHttpConnection
API.Convert thisStreamingHttpConnection
to theHttpConnection
API.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, onClosing
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
ReservedHttpConnection 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 interfaceStreamingHttpConnection
- Returns:
- a
HttpConnection
representation of thisStreamingHttpConnection
.
-
asBlockingStreamingConnection
ReservedBlockingStreamingHttpConnection 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 interfaceStreamingHttpConnection
- Returns:
- a
BlockingStreamingHttpConnection
representation of thisStreamingHttpConnection
.
-
asBlockingConnection
ReservedBlockingHttpConnection 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 interfaceStreamingHttpConnection
- Returns:
- a
BlockingHttpConnection
representation of thisStreamingHttpConnection
.
-