@Internal public class DefaultManagedAsyncClientConnection extends Object implements ManagedAsyncClientConnection, Identifiable
| Constructor and Description |
|---|
DefaultManagedAsyncClientConnection(IOSession ioSession) |
public DefaultManagedAsyncClientConnection(IOSession ioSession)
public String getId()
getId in interface Identifiablepublic void close(CloseMode closeMode)
close in interface ModalCloseablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface HttpConnectionIOExceptionpublic boolean isOpen()
isOpen in interface HttpConnectionpublic void setSocketTimeout(Timeout timeout)
setSocketTimeout in interface SocketModalCloseablepublic Timeout getSocketTimeout()
getSocketTimeout in interface SocketModalCloseablepublic SocketAddress getRemoteAddress()
getRemoteAddress in interface HttpConnectionpublic SocketAddress getLocalAddress()
getLocalAddress in interface HttpConnectionpublic EndpointDetails getEndpointDetails()
getEndpointDetails in interface HttpConnectionpublic ProtocolVersion getProtocolVersion()
getProtocolVersion in interface HttpConnectionpublic void startTls(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) throws UnsupportedOperationException
startTls in interface TransportSecurityLayerUnsupportedOperationExceptionpublic void startTls(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout) throws UnsupportedOperationException
startTls in interface TransportSecurityLayerUnsupportedOperationExceptionpublic TlsDetails getTlsDetails()
getTlsDetails in interface TransportSecurityLayerpublic SSLSession getSSLSession()
getSSLSession in interface HttpConnectionpublic void submitCommand(Command command, Command.Priority priority)
ManagedAsyncClientConnectionsubmitCommand in interface ManagedAsyncClientConnectioncommand - the command to be executed.priority - the command priority.public void passivate()
ManagedAsyncClientConnectionpassivate in interface ManagedAsyncClientConnectionpublic void activate()
ManagedAsyncClientConnectionactivate in interface ManagedAsyncClientConnectionpublic void switchProtocol(String protocolId, FutureCallback<ProtocolIOSession> callback) throws UnsupportedOperationException
ManagedAsyncClientConnectionswitchProtocol in interface ManagedAsyncClientConnectionprotocolId - the application protocol IDcallback - the result callbackUnsupportedOperationException - if application protocol switch
is not supported.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.