Package io.servicetalk.http.api
Interface FilterableStreamingHttpConnection
- All Superinterfaces:
AsyncCloseable
,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 aPublisher
that gives the current value of a transport event as well as subsequent changes to the event value as long as thePublisherSource.Subscriber
has expressed enough demand.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
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
-
connectionContext
HttpConnectionContext connectionContext()Get theHttpConnectionContext
.- Returns:
- the
HttpConnectionContext
.
-
transportEventStream
Returns aPublisher
that gives the current value of a transport event as well as subsequent changes to the event value as long as thePublisherSource.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.
- Type Parameters:
T
- Type of the event value.- Parameters:
eventKey
- Name of the event to fetch.- Returns:
Publisher
for the event values.
-