Package io.servicetalk.transport.api
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
A context for a connection.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.ConnectionInfo
ConnectionInfo.Protocol -
Method Summary
Modifier and TypeMethodDescriptiondefault ConnectionContextparent()Returns a reference to a parentConnectionContextif any.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefullyMethods inherited from interface io.servicetalk.transport.api.ConnectionInfo
connectionId, executionContext, localAddress, protocol, remoteAddress, socketOption, sslConfig, sslSession, toStringMethods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosing
-
Method Details
-
parent
Returns a reference to a parentConnectionContextif any.This method is useful when multiple virtual streams are multiplexed over a single connection to get access to the actual
ConnectionContextthat represents network.- Returns:
- a reference to a parent
ConnectionContextif any. Otherwise, returnsnull.
-