@Internal
public interface ManagedAsyncClientConnection
extends org.apache.hc.core5.http.HttpConnection, org.apache.hc.core5.reactor.ssl.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(org.apache.hc.core5.reactor.Command command,
org.apache.hc.core5.reactor.Command.Priority priority)
Submits the given command for execution.
|
default void |
switchProtocol(String protocolId,
org.apache.hc.core5.concurrent.FutureCallback<org.apache.hc.core5.reactor.ProtocolIOSession> callback)
Switches this I/O session to the application protocol with the given ID.
|
close, getEndpointDetails, getLocalAddress, getProtocolVersion, getRemoteAddress, getSSLSession, isOpen
void submitCommand(org.apache.hc.core5.reactor.Command command, org.apache.hc.core5.reactor.Command.Priority priority)
command
- the command to be executed.priority
- the command priority.void passivate()
void activate()
default void switchProtocol(String protocolId, org.apache.hc.core5.concurrent.FutureCallback<org.apache.hc.core5.reactor.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.