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 ConnectionContext
parent()
Returns a reference to a parentConnectionContext
if any.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
Methods inherited from interface io.servicetalk.transport.api.ConnectionInfo
executionContext, localAddress, protocol, remoteAddress, socketOption, sslConfig, sslSession
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosing
-
Method Details
-
parent
Returns a reference to a parentConnectionContext
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, returnsnull
.
-