Package io.servicetalk.http.api
Interface FilterableStreamingHttpConnection
- All Superinterfaces:
AsyncCloseable,AutoCloseable,GracefulAutoCloseable,ListenableAsyncCloseable,StreamingHttpRequester,StreamingHttpRequestFactory
- All Known Subinterfaces:
FilterableReservedStreamingHttpConnection,FilterableStreamingHttpLoadBalancedConnection,ReservedStreamingHttpConnection,StreamingHttpConnection
- All Known Implementing Classes:
DelegatingFilterableStreamingHttpLoadBalancedConnection,HttpLoadBalancerFactory.DefaultFilterableStreamingHttpLoadBalancedConnection,ReservedStreamingHttpConnectionFilter,StreamingHttpConnectionFilter
A
StreamingHttpConnection that supported filtering.-
Method Summary
Modifier and TypeMethodDescriptionGet theHttpConnectionContext.<T> Publisher<? extends T>transportEventStream(HttpEventKey<T> eventKey) Returns aPublisherthat gives the current value of a transport event as well as subsequent changes to the event value as long as thePublisherSource.Subscriberhas expressed enough demand.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefullyMethods 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
-
connectionContext
HttpConnectionContext connectionContext()Get theHttpConnectionContext.- Returns:
- the
HttpConnectionContext.
-
transportEventStream
Returns aPublisherthat gives the current value of a transport event as well as subsequent changes to the event value as long as thePublisherSource.Subscriberhas 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.
- Type Parameters:
T- Type of the event value.- Parameters:
eventKey- Name of the event to fetch.- Returns:
Publisherfor the event values.
-