Package io.servicetalk.http.api
Interface FilterableReservedStreamingHttpConnection
- All Superinterfaces:
AsyncCloseable
,FilterableStreamingHttpConnection
,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 reservedFilterableStreamingHttpConnection
to be used for subsequent requests.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
Methods inherited from interface io.servicetalk.http.api.FilterableStreamingHttpConnection
connectionContext, transportEventStream
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosing
Methods inherited from interface io.servicetalk.http.api.StreamingHttpRequester
executionContext, httpResponseFactory, request
-
Method Details
-
releaseAsync
Completable releaseAsync()Releases this reservedFilterableStreamingHttpConnection
to be used for subsequent requests. This method must be idempotent, i.e. calling multiple times must not have side-effects.- Returns:
- the
Completable
that is notified on releaseAsync.
-