@Internal public interface ManagedAsyncClientConnection extends HttpConnection, TransportSecurityLayer
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2023. All rights reserved.