Package io.servicetalk.http.api
Interface ReservedBlockingStreamingHttpConnection
-
- All Superinterfaces:
java.lang.AutoCloseable,BlockingStreamingHttpConnection,BlockingStreamingHttpRequester,BlockingStreamingHttpRequestFactory,GracefulAutoCloseable
public interface ReservedBlockingStreamingHttpConnection extends BlockingStreamingHttpConnection
A special type ofBlockingStreamingHttpConnectionfor the exclusive use of the caller ofBlockingStreamingHttpClient.reserveConnection(HttpRequestMetaData)andBlockingStreamingHttpClient.reserveConnection(HttpExecutionStrategy, HttpRequestMetaData).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ReservedBlockingHttpConnectionasBlockingConnection()Convert thisBlockingStreamingHttpConnectionto theBlockingHttpConnectionAPI.default ReservedHttpConnectionasConnection()Convert thisBlockingStreamingHttpConnectionto theHttpConnectionAPI.ReservedStreamingHttpConnectionasStreamingConnection()Convert thisBlockingStreamingHttpConnectionto theStreamingHttpConnectionAPI.voidrelease()Releases this reservedBlockingStreamingHttpConnectionto be used for subsequent requests.-
Methods inherited from interface io.servicetalk.http.api.BlockingStreamingHttpConnection
connectionContext, request, 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 Detail
-
release
void release() throws java.lang.ExceptionReleases this reservedBlockingStreamingHttpConnectionto be used for subsequent requests. This method must be idempotent, i.e. calling multiple times must not have side-effects.- Throws:
java.lang.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
default ReservedHttpConnection 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
default ReservedBlockingHttpConnection 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.
-
-