public class ReservedStreamingHttpConnectionFilter extends Object implements FilterableReservedStreamingHttpConnection
ReservedStreamingHttpConnectionFilter that delegates all methods to a different
ReservedStreamingHttpConnectionFilter.| Modifier | Constructor and Description |
|---|---|
protected |
ReservedStreamingHttpConnectionFilter(FilterableReservedStreamingHttpConnection delegate)
Create a new instance.
|
protected ReservedStreamingHttpConnectionFilter(FilterableReservedStreamingHttpConnection delegate)
delegate - The FilterableReservedStreamingHttpConnection to delegate all calls topublic Completable releaseAsync()
FilterableReservedStreamingHttpConnectionFilterableStreamingHttpConnection to be used for subsequent requests.
This method must be idempotent, i.e. calling multiple times must not have side-effects.releaseAsync in interface FilterableReservedStreamingHttpConnectionCompletable that is notified on releaseAsync.public HttpConnectionContext connectionContext()
FilterableStreamingHttpConnectionHttpConnectionContext.connectionContext in interface FilterableStreamingHttpConnectionHttpConnectionContext.public <T> Publisher<? extends T> transportEventStream(HttpEventKey<T> eventKey)
FilterableStreamingHttpConnectionPublisher that gives the current value of a transport event as well as subsequent changes to
the event value as long as the PublisherSource.Subscriber has expressed enough demand.
This is designed for events produced by the transport, and consumed by filters interested in transport behavior which is not directly involved in the data path.
transportEventStream in interface FilterableStreamingHttpConnectionT - Type of the event value.eventKey - Name of the event to fetch.Publisher for the event values.public Single<StreamingHttpResponse> request(StreamingHttpRequest request)
StreamingHttpRequesterrequest.request in interface StreamingHttpRequesterrequest - the request to send.@Deprecated public final Single<StreamingHttpResponse> request(HttpExecutionStrategy strategy, StreamingHttpRequest request)
StreamingHttpRequesterrequest using the specified strategy.request in interface StreamingHttpRequesterstrategy - HttpExecutionStrategy to use for executing the request.request - the request to send.public HttpExecutionContext executionContext()
StreamingHttpRequesterHttpExecutionContext used during construction of this object.
Note that the ExecutionContext.ioExecutor() will not necessarily be associated with a specific thread
unless that was how this object was built.
executionContext in interface StreamingHttpRequesterHttpExecutionContext used during construction of this object.public StreamingHttpResponseFactory httpResponseFactory()
StreamingHttpRequesterStreamingHttpResponseFactory.httpResponseFactory in interface StreamingHttpRequesterStreamingHttpResponseFactory.public Completable onClose()
onClose in interface ListenableAsyncCloseablepublic Completable closeAsync()
closeAsync in interface AsyncCloseablepublic Completable closeAsyncGracefully()
closeAsyncGracefully in interface AsyncCloseablepublic StreamingHttpRequest newRequest(HttpRequestMethod method, String requestTarget)
StreamingHttpRequestFactoryHttpRequestFactory.newRequest in interface StreamingHttpRequestFactorymethod - The HttpRequestMethod.requestTarget - The request target.HttpRequestFactory.public String toString()
toString in class Objectprotected final FilterableReservedStreamingHttpConnection delegate()
ReservedStreamingHttpConnection this method delegates to.ReservedStreamingHttpConnection this method delegates to.@Deprecated protected Single<StreamingHttpResponse> request(StreamingHttpRequester delegate, HttpExecutionStrategy strategy, StreamingHttpRequest request)
request(StreamingHttpRequest). If an HttpExecutionStrategy needs to be altered,
provide a value for HttpContextKeys.HTTP_EXECUTION_STRATEGY_KEY in the
request context.StreamingHttpRequester on
which to call StreamingHttpRequester.request(HttpExecutionStrategy, StreamingHttpRequest).delegate - The StreamingHttpRequester to delegate requests to.strategy - The HttpExecutionStrategy to use for executing the request.request - The request to delegate.