Package io.servicetalk.http.api
Interface ReservedBlockingStreamingHttpConnection
- All Superinterfaces:
AutoCloseable
,BlockingStreamingHttpConnection
,BlockingStreamingHttpRequester
,BlockingStreamingHttpRequestFactory
,GracefulAutoCloseable
A special type of
BlockingStreamingHttpConnection
for the exclusive use of the caller of
BlockingStreamingHttpClient.reserveConnection(HttpRequestMetaData)
.-
Method Summary
Modifier and TypeMethodDescriptiondefault ReservedBlockingHttpConnection
Convert thisBlockingStreamingHttpConnection
to theBlockingHttpConnection
API.default ReservedHttpConnection
Convert thisBlockingStreamingHttpConnection
to theHttpConnection
API.Convert thisBlockingStreamingHttpConnection
to theStreamingHttpConnection
API.void
release()
Releases this reservedBlockingStreamingHttpConnection
to be used for subsequent requests.Methods inherited from interface io.servicetalk.http.api.BlockingStreamingHttpConnection
connectionContext, transportEventIterable
Methods inherited from interface io.servicetalk.http.api.BlockingStreamingHttpRequester
close, executionContext, httpResponseFactory, request
Methods inherited from interface io.servicetalk.http.api.BlockingStreamingHttpRequestFactory
connect, delete, get, head, newRequest, options, patch, post, put, trace
Methods inherited from interface io.servicetalk.concurrent.GracefulAutoCloseable
closeGracefully
-
Method Details
-
release
Releases this reservedBlockingStreamingHttpConnection
to be used for subsequent requests. This method must be idempotent, i.e. calling multiple times must not have side-effects.- Throws:
Exception
- if any exception occurs during releasing.
-
asStreamingConnection
ReservedStreamingHttpConnection asStreamingConnection()Description copied from interface:BlockingStreamingHttpConnection
Convert thisBlockingStreamingHttpConnection
to theStreamingHttpConnection
API.Note that the resulting
StreamingHttpConnection
may still be subject to any blocking, in memory aggregation, and other behavior as thisBlockingStreamingHttpConnection
.- Specified by:
asStreamingConnection
in interfaceBlockingStreamingHttpConnection
- Returns:
- a
StreamingHttpConnection
representation of thisBlockingStreamingHttpConnection
.
-
asConnection
Description copied from interface:BlockingStreamingHttpConnection
Convert thisBlockingStreamingHttpConnection
to theHttpConnection
API.Note that the resulting
HttpConnection
may still be subject to any blocking, in memory aggregation, and other behavior as thisBlockingStreamingHttpConnection
.- Specified by:
asConnection
in interfaceBlockingStreamingHttpConnection
- Returns:
- a
HttpConnection
representation of thisBlockingStreamingHttpConnection
.
-
asBlockingConnection
Description copied from interface:BlockingStreamingHttpConnection
Convert thisBlockingStreamingHttpConnection
to theBlockingHttpConnection
API.Note that the resulting
BlockingHttpConnection
may still be subject to in memory aggregation and other behavior as thisBlockingStreamingHttpConnection
.- Specified by:
asBlockingConnection
in interfaceBlockingStreamingHttpConnection
- Returns:
- a
BlockingHttpConnection
representation of thisBlockingStreamingHttpConnection
.
-