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, transportEventStreamexecutionContext, httpResponseFactory, requestCompletable 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()
HttpConnectionHttpConnection to the StreamingHttpConnection API.asStreamingConnection in interface HttpConnectionStreamingHttpConnection representation of this HttpConnection.default ReservedBlockingStreamingHttpConnection asBlockingStreamingConnection()
HttpConnectionHttpConnection to the BlockingStreamingHttpConnection API.asBlockingStreamingConnection in interface HttpConnectionBlockingStreamingHttpConnection representation of this HttpConnection.default ReservedBlockingHttpConnection asBlockingConnection()
HttpConnectionHttpConnection to the BlockingHttpConnection API.asBlockingConnection in interface HttpConnectionBlockingHttpConnection representation of this HttpConnection.