| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| private final IOSession | |
| private static final Logger | |
| private final Timeout |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | activate()
Implements org. |
| public void | close(final CloseMode
How to close the receiver. closeMode)Implements org. |
| public void | |
| public EndpointDetails | getEndpointDetails()
Implements org. |
| public String | |
| public SocketAddress | getLocalAddress()
Implements org. null if it is not bound yet.
|
| public ProtocolVersion | getProtocolVersion()
Implements org. null if unknown.
|
| public SocketAddress | getRemoteAddress()
Implements org. null if it is not connected yet or
unconnected.
|
| public Timeout | getSocketTimeout()
Implements org. |
| public SSLSession | getSSLSession()
Implements org. null if TLS has not been activated.
|
| public TlsDetails | getTlsDetails()
Implements org. |
| public boolean | isOpen()
Implements org. |
| public void | passivate()
Implements org. |
| public void | setSocketTimeout(final Timeout
timeout value timeout)Implements org. |
| public void | startTls(final SSLContext
SSL context to be used for this session. sslContext, final NamedEndpoint optional endpoint details for outgoing client side connections. endpoint, final SSLBufferMode SSL buffer management mode. sslBufferMode, final SSLSessionInitializer SSL session initialization callback. initializer, final SSLSessionVerifier SSL session verification callback. verifier, final Timeout the timeout to use while performing the TLS handshake; may be handshakeTimeout, final FutureCallback<TransportSecurityLayer> callback)null.Overrides default org. |
| public void | startTls(final SSLContext
SSL context to be used for this session. sslContext, final NamedEndpoint optional endpoint details for outgoing client side connections. endpoint, final SSLBufferMode SSL buffer management mode. sslBufferMode, final SSLSessionInitializer SSL session initialization callback. initializer, final SSLSessionVerifier SSL session verification callback. verifier, final Timeout the timeout to use while performing the TLS handshake; may be handshakeTimeout)null.Implements org. |
| public void | submitCommand(final Command
the command to be executed. command, final Command.the command priority. priorityImplements org. |
| public void | switchProtocol(final String
the application protocol ID protocolId, final FutureCallback<ProtocolIOSession> the result callback callback)Overrides default org. |
| closed | back to summary |
|---|---|
| private final AtomicBoolean closed | |
| ioSession | back to summary |
|---|---|
| private final IOSession ioSession | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| socketTimeout | back to summary |
|---|---|
| private final Timeout socketTimeout | |
| DefaultManagedAsyncClientConnection | back to summary |
|---|---|
| public DefaultManagedAsyncClientConnection(final IOSession ioSession) | |
| activate | back to summary |
|---|---|
| public void activate() Implements org. Doc from org. Restores the connection from idle mode.
| |
| close | back to summary |
|---|---|
| public void close(final CloseMode closeMode) Implements org. Doc from org. Closes this process or endpoint and releases any system resources associated with it. If the endpoint or the process is already closed then invoking this method has no effect. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. Closes this connection gracefully. This method will attempt to flush the internal output
buffer prior to closing the underlying socket. This method MUST NOT be called from a
different thread to force shutdown of the connection. Use
| |
| getEndpointDetails | back to summary |
|---|---|
| public EndpointDetails getEndpointDetails() Implements org. Doc from org. Returns this connection's endpoint details.
| |
| getId | back to summary |
|---|---|
| public String getId() Implements org.
| |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() Implements org. Doc from org. Returns this connection's local address or
| |
| getProtocolVersion | back to summary |
|---|---|
| public ProtocolVersion getProtocolVersion() Implements org. Doc from org. Returns this connection's protocol version or
| |
| getRemoteAddress | back to summary |
|---|---|
| public SocketAddress getRemoteAddress() Implements org. Doc from org. Returns this connection's remote address or
| |
| getSocketTimeout | back to summary |
|---|---|
| public Timeout getSocketTimeout() Implements org. Doc from org. Returns the socket timeout value. | |
| getSSLSession | back to summary |
|---|---|
| public SSLSession getSSLSession() Implements org. Doc from org. Returns this connection's SSL session or
| |
| getTlsDetails | back to summary |
|---|---|
| public TlsDetails getTlsDetails() Implements org. Doc from org. Returns details of a fully established TLS session.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements org. Doc from org. Checks if this connection is open.
| |
| passivate | back to summary |
|---|---|
| public void passivate() Implements org. Doc from org. Puts the connection into idle mode.
| |
| setSocketTimeout | back to summary |
|---|---|
| public void setSocketTimeout(final Timeout timeout) Implements org. Doc from org. Sets the socket timeout value. | |
| startTls | back to summary |
|---|---|
| public void startTls(final SSLContext sslContext, final NamedEndpoint endpoint, final SSLBufferMode sslBufferMode, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier, final Timeout handshakeTimeout, final FutureCallback<TransportSecurityLayer> callback) throws UnsupportedOperationException Overrides default org. Doc from org. Starts TLS session over an existing network connection with the given SSL context.
| |
| startTls | back to summary |
|---|---|
| public void startTls(final SSLContext sslContext, final NamedEndpoint endpoint, final SSLBufferMode sslBufferMode, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier, final Timeout handshakeTimeout) throws UnsupportedOperationException Implements org. Doc from org. Starts TLS session over an existing network connection with the given SSL context.
| |
| submitCommand | back to summary |
|---|---|
| public void submitCommand(final Command command, final Command. Implements org. Doc from org. Submits the given command for execution. | |
| switchProtocol | back to summary |
|---|---|
| public void switchProtocol(final String protocolId, final FutureCallback<ProtocolIOSession> callback) throws UnsupportedOperationException Overrides default org. Doc from org. Switches this I/O session to the application protocol with the given ID.
| |