@Internal public interface ManagedAsyncClientConnection extends HttpConnection, TransportSecurityLayer
| Modifier and Type | Method and Description | 
|---|---|
| void | activate()Restores the connection from idle mode. | 
| void | passivate()Puts the connection into idle mode. | 
| void | submitCommand(Command command,
             Command.Priority priority)Submits the given command for execution. | 
| default void | switchProtocol(String protocolId,
              FutureCallback<ProtocolIOSession> callback)Switches this I/O session to the application protocol with the given ID. | 
close, getEndpointDetails, getLocalAddress, getProtocolVersion, getRemoteAddress, getSSLSession, isOpengetSocketTimeout, setSocketTimeoutclosegetTlsDetails, startTls, startTlsvoid submitCommand(Command command, Command.Priority priority)
command - the command to be executed.priority - the command priority.void passivate()
void activate()
default void switchProtocol(String protocolId, FutureCallback<ProtocolIOSession> callback) throws UnsupportedOperationException
protocolId - the application protocol IDcallback - the result callbackUnsupportedOperationException - if application protocol switch
 is not supported.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.