Interface ConnectionContext

All Superinterfaces:
AsyncCloseable, ConnectionInfo, ListenableAsyncCloseable
All Known Subinterfaces:
GrpcServiceContext, HttpConnectionContext, NettyConnection<Read,Write>, NettyConnectionContext
All Known Implementing Classes:
DefaultNettyConnection, DelegatingConnectionContext, DelegatingHttpConnectionContext, DelegatingHttpServiceContext, HttpServiceContext, NettyPipelinedConnection

public interface ConnectionContext extends ConnectionInfo, ListenableAsyncCloseable
A context for a connection.
  • Method Details

    • parent

      @Nullable default ConnectionContext parent()
      Returns a reference to a parent ConnectionContext if any.

      This method is useful when multiple virtual streams are multiplexed over a single connection to get access to the actual ConnectionContext that represents network.

      Returns:
      a reference to a parent ConnectionContext if any. Otherwise, returns null.