Package io.servicetalk.http.api
Interface FilterableReservedStreamingHttpConnection
- All Superinterfaces:
AsyncCloseable,AutoCloseable,FilterableStreamingHttpConnection,GracefulAutoCloseable,ListenableAsyncCloseable,StreamingHttpRequester,StreamingHttpRequestFactory
- All Known Subinterfaces:
FilterableStreamingHttpLoadBalancedConnection,ReservedStreamingHttpConnection
- All Known Implementing Classes:
DelegatingFilterableStreamingHttpLoadBalancedConnection,HttpLoadBalancerFactory.DefaultFilterableStreamingHttpLoadBalancedConnection,ReservedStreamingHttpConnectionFilter
public interface FilterableReservedStreamingHttpConnection
extends FilterableStreamingHttpConnection
A special type of
StreamingHttpConnection for the exclusive use of the caller of
StreamingHttpClient.reserveConnection(HttpRequestMetaData).-
Method Summary
Modifier and TypeMethodDescriptionReleases this reservedFilterableStreamingHttpConnectionto be used for subsequent requests.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefullyMethods inherited from interface io.servicetalk.http.api.FilterableStreamingHttpConnection
connectionContext, transportEventStreamMethods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosingMethods inherited from interface io.servicetalk.http.api.StreamingHttpRequester
close, closeGracefully, executionContext, httpResponseFactory, request
-
Method Details
-
releaseAsync
Completable releaseAsync()Releases this reservedFilterableStreamingHttpConnectionto be used for subsequent requests. This method must be idempotent, i.e. calling multiple times must not have side-effects.- Returns:
- the
Completablethat is notified on releaseAsync.
-