public interface ReservedHttpConnection extends HttpConnection
HttpConnection
for the exclusive use of the caller of
HttpClient.reserveConnection(HttpRequestMetaData)
and
HttpClient.reserveConnection(HttpExecutionStrategy, HttpRequestMetaData)
.Modifier and Type | Method and Description |
---|---|
default ReservedBlockingHttpConnection |
asBlockingConnection()
Convert this
HttpConnection to the BlockingHttpConnection API. |
default ReservedBlockingStreamingHttpConnection |
asBlockingStreamingConnection()
Convert this
HttpConnection to the BlockingStreamingHttpConnection API. |
ReservedStreamingHttpConnection |
asStreamingConnection()
Convert this
HttpConnection to the StreamingHttpConnection API. |
Completable |
releaseAsync()
Releases this reserved
ReservedHttpConnection to be used for subsequent requests. |
close, closeGracefully, connectionContext, request, transportEventStream
executionContext, httpResponseFactory, request
connect, delete, get, head, newRequest, options, patch, post, put, trace
onClose
closeAsync, closeAsyncGracefully
Completable releaseAsync()
ReservedHttpConnection
to be used for subsequent requests.
This method must be idempotent, i.e. calling multiple times must not have side-effects.Completable
that is notified on releaseAsync.ReservedStreamingHttpConnection asStreamingConnection()
HttpConnection
HttpConnection
to the StreamingHttpConnection
API.asStreamingConnection
in interface HttpConnection
StreamingHttpConnection
representation of this HttpConnection
.default ReservedBlockingStreamingHttpConnection asBlockingStreamingConnection()
HttpConnection
HttpConnection
to the BlockingStreamingHttpConnection
API.asBlockingStreamingConnection
in interface HttpConnection
BlockingStreamingHttpConnection
representation of this HttpConnection
.default ReservedBlockingHttpConnection asBlockingConnection()
HttpConnection
HttpConnection
to the BlockingHttpConnection
API.asBlockingConnection
in interface HttpConnection
BlockingHttpConnection
representation of this HttpConnection
.