public interface ReservedBlockingStreamingHttpConnection extends BlockingStreamingHttpConnection
BlockingStreamingHttpConnection
for the exclusive use of the caller of
BlockingStreamingHttpClient.reserveConnection(HttpRequestMetaData)
and
BlockingStreamingHttpClient.reserveConnection(HttpExecutionStrategy, HttpRequestMetaData)
.Modifier and Type | Method and Description |
---|---|
default ReservedBlockingHttpConnection |
asBlockingConnection()
Convert this
BlockingStreamingHttpConnection to the BlockingHttpConnection API. |
default ReservedHttpConnection |
asConnection()
Convert this
BlockingStreamingHttpConnection to the HttpConnection API. |
ReservedStreamingHttpConnection |
asStreamingConnection()
Convert this
BlockingStreamingHttpConnection to the StreamingHttpConnection API. |
void |
release()
Releases this reserved
BlockingStreamingHttpConnection to be used for subsequent requests. |
connectionContext, request, transportEventIterable
close, executionContext, httpResponseFactory, request
connect, delete, get, head, newRequest, options, patch, post, trace
closeGracefully
void release() throws java.lang.Exception
BlockingStreamingHttpConnection
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()
BlockingStreamingHttpConnection
BlockingStreamingHttpConnection
to the StreamingHttpConnection
API.
Note that the resulting StreamingHttpConnection
may still be subject to any blocking, in memory
aggregation, and other behavior as this BlockingStreamingHttpConnection
.
asStreamingConnection
in interface BlockingStreamingHttpConnection
StreamingHttpConnection
representation of this BlockingStreamingHttpConnection
.default ReservedHttpConnection asConnection()
BlockingStreamingHttpConnection
BlockingStreamingHttpConnection
to the HttpConnection
API.
Note that the resulting HttpConnection
may still be subject to any blocking, in memory
aggregation, and other behavior as this BlockingStreamingHttpConnection
.
asConnection
in interface BlockingStreamingHttpConnection
HttpConnection
representation of this BlockingStreamingHttpConnection
.default ReservedBlockingHttpConnection asBlockingConnection()
BlockingStreamingHttpConnection
BlockingStreamingHttpConnection
to the BlockingHttpConnection
API.
Note that the resulting BlockingHttpConnection
may still be subject to in memory
aggregation and other behavior as this BlockingStreamingHttpConnection
.
asBlockingConnection
in interface BlockingStreamingHttpConnection
BlockingHttpConnection
representation of this
BlockingStreamingHttpConnection
.