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 ReservedBlockingHttpConnectionConvert thisBlockingStreamingHttpConnectionto theBlockingHttpConnectionAPI.default ReservedHttpConnectionConvert thisBlockingStreamingHttpConnectionto theHttpConnectionAPI.Convert thisBlockingStreamingHttpConnectionto theStreamingHttpConnectionAPI.voidrelease()Releases this reservedBlockingStreamingHttpConnectionto be used for subsequent requests.Methods inherited from interface io.servicetalk.http.api.BlockingStreamingHttpConnection
connectionContext, transportEventIterableMethods inherited from interface io.servicetalk.http.api.BlockingStreamingHttpRequester
close, executionContext, httpResponseFactory, requestMethods inherited from interface io.servicetalk.http.api.BlockingStreamingHttpRequestFactory
connect, delete, get, head, newRequest, options, patch, post, put, traceMethods inherited from interface io.servicetalk.concurrent.GracefulAutoCloseable
closeGracefully
-
Method Details
-
release
Releases this reservedBlockingStreamingHttpConnectionto 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:BlockingStreamingHttpConnectionConvert thisBlockingStreamingHttpConnectionto theStreamingHttpConnectionAPI.Note that the resulting
StreamingHttpConnectionmay still be subject to any blocking, in memory aggregation, and other behavior as thisBlockingStreamingHttpConnection.- Specified by:
asStreamingConnectionin interfaceBlockingStreamingHttpConnection- Returns:
- a
StreamingHttpConnectionrepresentation of thisBlockingStreamingHttpConnection.
-
asConnection
Description copied from interface:BlockingStreamingHttpConnectionConvert thisBlockingStreamingHttpConnectionto theHttpConnectionAPI.Note that the resulting
HttpConnectionmay still be subject to any blocking, in memory aggregation, and other behavior as thisBlockingStreamingHttpConnection.- Specified by:
asConnectionin interfaceBlockingStreamingHttpConnection- Returns:
- a
HttpConnectionrepresentation of thisBlockingStreamingHttpConnection.
-
asBlockingConnection
Description copied from interface:BlockingStreamingHttpConnectionConvert thisBlockingStreamingHttpConnectionto theBlockingHttpConnectionAPI.Note that the resulting
BlockingHttpConnectionmay still be subject to in memory aggregation and other behavior as thisBlockingStreamingHttpConnection.- Specified by:
asBlockingConnectionin interfaceBlockingStreamingHttpConnection- Returns:
- a
BlockingHttpConnectionrepresentation of thisBlockingStreamingHttpConnection.
-