Package io.servicetalk.http.api
Interface HttpConnectionContext
- All Superinterfaces:
AsyncCloseable,ConnectionContext,ConnectionInfo,ListenableAsyncCloseable
- All Known Implementing Classes:
DelegatingHttpConnectionContext,DelegatingHttpServiceContext,HttpServiceContext
ConnectionContext for HTTP.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.ConnectionInfo
ConnectionInfo.Protocol -
Method Summary
Modifier and TypeMethodDescriptionGet theExecutionContextfor thisConnectionInfo.protocol()Get theConnectionInfo.Protocolfor thisConnectionInfo.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefullyMethods inherited from interface io.servicetalk.transport.api.ConnectionContext
parentMethods inherited from interface io.servicetalk.transport.api.ConnectionInfo
connectionId, localAddress, remoteAddress, socketOption, sslConfig, sslSession, toStringMethods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosing
-
Method Details
-
executionContext
HttpExecutionContext executionContext()Description copied from interface:ConnectionInfoGet theExecutionContextfor thisConnectionInfo.The
ExecutionContext.ioExecutor()will represent the thread responsible for IO for thisConnectionInfo. Note that this maybe different that what was used to create this object because at this time a specificIoExecutorhas been selected.- Specified by:
executionContextin interfaceConnectionInfo- Returns:
- the
ExecutionContextfor thisConnectionInfo.
-
protocol
HttpProtocolVersion protocol()Description copied from interface:ConnectionInfoGet theConnectionInfo.Protocolfor thisConnectionInfo.- Specified by:
protocolin interfaceConnectionInfo- Returns:
- the
ConnectionInfo.Protocolfor thisConnectionInfo.
-