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, transportEventIterableclose, executionContext, httpResponseFactory, requestvoid release()
throws Exception
BlockingHttpConnection to be used for subsequent requests.
This method must be idempotent, i.e. calling multiple times must not have side-effects.Exception - if any exception occurs during releasing.ReservedStreamingHttpConnection asStreamingConnection()
BlockingHttpConnectionBlockingHttpConnection 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 BlockingHttpConnectionStreamingHttpConnection representation of this BlockingHttpConnection.default ReservedHttpConnection asConnection()
BlockingHttpConnectionBlockingHttpConnection 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 BlockingHttpConnectionHttpConnection representation of this BlockingHttpConnection.default ReservedBlockingStreamingHttpConnection asBlockingStreamingConnection()
BlockingHttpConnectionBlockingHttpConnection 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 BlockingHttpConnectionBlockingStreamingHttpConnection representation of this BlockingHttpConnection.