Package io.servicetalk.http.api
Class ReservedStreamingHttpConnectionFilter
java.lang.Object
io.servicetalk.http.api.StreamingHttpConnectionFilter
io.servicetalk.http.api.ReservedStreamingHttpConnectionFilter
- All Implemented Interfaces:
AsyncCloseable,ListenableAsyncCloseable,GracefulAutoCloseable,FilterableReservedStreamingHttpConnection,FilterableStreamingHttpConnection,StreamingHttpRequester,StreamingHttpRequestFactory,AutoCloseable
public class ReservedStreamingHttpConnectionFilter
extends StreamingHttpConnectionFilter
implements FilterableReservedStreamingHttpConnection
A
ReservedStreamingHttpConnectionFilter that delegates all methods to a different
ReservedStreamingHttpConnectionFilter.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected final FilterableReservedStreamingHttpConnectiondelegate()Get theFilterableReservedStreamingHttpConnectionthis method delegates to.Releases this reservedFilterableStreamingHttpConnectionto be used for subsequent requests.Methods inherited from class io.servicetalk.http.api.StreamingHttpConnectionFilter
closeAsync, closeAsyncGracefully, connectionContext, executionContext, httpResponseFactory, newRequest, onClose, onClosing, request, toString, transportEventStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
Constructor Details
-
ReservedStreamingHttpConnectionFilter
Create a new instance.- Parameters:
delegate- TheFilterableReservedStreamingHttpConnectionto delegate all calls to
-
-
Method Details
-
releaseAsync
Description copied from interface:FilterableReservedStreamingHttpConnectionReleases this reservedFilterableStreamingHttpConnectionto be used for subsequent requests. This method must be idempotent, i.e. calling multiple times must not have side-effects.- Specified by:
releaseAsyncin interfaceFilterableReservedStreamingHttpConnection- Returns:
- the
Completablethat is notified on releaseAsync.
-
delegate
Get theFilterableReservedStreamingHttpConnectionthis method delegates to.- Overrides:
delegatein classStreamingHttpConnectionFilter- Returns:
- the
FilterableReservedStreamingHttpConnectionthis method delegates to.
-