public interface ConnectionInfo
Modifier and Type | Interface and Description |
---|---|
static interface |
ConnectionInfo.Protocol
Provides information about the network protocol.
|
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
executionContext()
Get the
ExecutionContext for this ConnectionInfo . |
java.net.SocketAddress |
localAddress()
The
SocketAddress to which the associated connection is bound. |
ConnectionInfo.Protocol |
protocol()
Get the
ConnectionInfo.Protocol for this ConnectionInfo . |
java.net.SocketAddress |
remoteAddress()
The
SocketAddress to which the associated connection is connected. |
<T> T |
socketOption(java.net.SocketOption<T> option)
|
javax.net.ssl.SSLSession |
sslSession()
Get the
SSLSession for this connection. |
java.net.SocketAddress localAddress()
SocketAddress
to which the associated connection is bound.SocketAddress
to which the associated connection is bound.java.net.SocketAddress remoteAddress()
SocketAddress
to which the associated connection is connected.SocketAddress
to which the associated connection is connected.@Nullable javax.net.ssl.SSLSession sslSession()
SSLSession
for this connection.SSLSession
if SSL/TLS is enabled, or null
otherwise.ExecutionContext executionContext()
ExecutionContext
for this ConnectionInfo
.
The ExecutionContext.ioExecutor()
will represent the thread responsible for IO for this
ConnectionInfo
. Note that this maybe different that what was used to create this object because
at this time a specific IoExecutor
has been selected.
ExecutionContext
for this ConnectionInfo
.@Nullable <T> T socketOption(java.net.SocketOption<T> option)
T
- the type of the SocketOption
value.option
- SocketOption
to get.SocketOption
value of type T
for this ConnectionInfo
or null
if
this SocketOption
is not supported by this ConnectionInfo
.StandardSocketOptions
,
ServiceTalkSocketOptions
ConnectionInfo.Protocol protocol()
ConnectionInfo.Protocol
for this ConnectionInfo
.ConnectionInfo.Protocol
for this ConnectionInfo
.