public interface ReservedBlockingHttpConnection extends BlockingHttpConnection
BlockingHttpConnection
for the exclusive use of the caller of
BlockingHttpClient.reserveConnection(HttpRequestMetaData)
and
BlockingHttpClient.reserveConnection(HttpExecutionStrategy, HttpRequestMetaData)
.Modifier and Type | Method and Description |
---|---|
default ReservedBlockingStreamingHttpConnection |
asBlockingStreamingConnection()
Convert this
BlockingHttpConnection to the BlockingStreamingHttpConnection API. |
default ReservedHttpConnection |
asConnection()
Convert this
BlockingHttpConnection to the HttpConnection API. |
ReservedStreamingHttpConnection |
asStreamingConnection()
Convert this
BlockingHttpConnection to the StreamingHttpConnection API. |
void |
release()
Releases this reserved
BlockingHttpConnection to be used for subsequent requests. |
connectionContext, request, transportEventIterable
close, executionContext, httpResponseFactory, request
connect, delete, get, head, newRequest, options, patch, post, put, trace
closeGracefully
void release() throws java.lang.Exception
BlockingHttpConnection
to be used for subsequent requests.
This method must be idempotent, i.e. calling multiple times must not have side-effects.java.lang.Exception
- if any exception occurs during releasing.ReservedStreamingHttpConnection asStreamingConnection()
BlockingHttpConnection
BlockingHttpConnection
to the StreamingHttpConnection
API.
Note that the resulting StreamingHttpConnection
may still be subject to any blocking, in memory
aggregation, and other behavior as this BlockingHttpConnection
.
asStreamingConnection
in interface BlockingHttpConnection
StreamingHttpConnection
representation of this BlockingHttpConnection
.default ReservedHttpConnection asConnection()
BlockingHttpConnection
BlockingHttpConnection
to the HttpConnection
API.
Note that the resulting HttpConnection
may still be subject to any blocking, in memory
aggregation, and other behavior as this BlockingHttpConnection
.
asConnection
in interface BlockingHttpConnection
HttpConnection
representation of this BlockingHttpConnection
.default ReservedBlockingStreamingHttpConnection asBlockingStreamingConnection()
BlockingHttpConnection
BlockingHttpConnection
to the BlockingStreamingHttpConnection
API.
Note that the resulting BlockingStreamingHttpConnection
may still be subject to in memory
aggregation and other behavior as this BlockingHttpConnection
.
asBlockingStreamingConnection
in interface BlockingHttpConnection
BlockingStreamingHttpConnection
representation of this BlockingHttpConnection
.