Interface FilterableStreamingHttpConnection

All Superinterfaces:
AsyncCloseable, ListenableAsyncCloseable, StreamingHttpRequester, StreamingHttpRequestFactory
All Known Subinterfaces:
FilterableReservedStreamingHttpConnection, FilterableStreamingHttpLoadBalancedConnection, ReservedStreamingHttpConnection, StreamingHttpConnection
All Known Implementing Classes:
DelegatingFilterableStreamingHttpLoadBalancedConnection, HttpLoadBalancerFactory.DefaultFilterableStreamingHttpLoadBalancedConnection, ReservedStreamingHttpConnectionFilter, StreamingHttpConnectionFilter

public interface FilterableStreamingHttpConnection extends StreamingHttpRequester
A StreamingHttpConnection that supported filtering.
  • Method Details

    • connectionContext

      HttpConnectionContext connectionContext()
      Returns:
      the HttpConnectionContext.
    • transportEventStream

      <T> Publisher<? extends T> transportEventStream(HttpEventKey<T> eventKey)
      Returns a Publisher 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.

      Type Parameters:
      T - Type of the event value.
      Parameters:
      eventKey - Name of the event to fetch.
      Returns:
      Publisher for the event values.