public interface ProtocolIOSession extends IOSession, TransportSecurityLayer
IOSession.IOSession.Status| Modifier and Type | Method and Description | 
|---|---|
| NamedEndpoint | getInitialEndpoint() | 
| default void | registerProtocol(String protocolId,
                ProtocolUpgradeHandler upgradeHandler)Registers protocol upgrade handler with the given application protocol ID. | 
| default void | switchProtocol(String protocolId,
              FutureCallback<ProtocolIOSession> callback)Switches this I/O session to the application protocol with the given ID. | 
channel, clearEvent, close, enqueue, getEventMask, getHandler, getLastEventTime, getLastReadTime, getLastWriteTime, getLocalAddress, getLock, getRemoteAddress, getSocketTimeout, getStatus, hasCommands, poll, setEvent, setEventMask, setSocketTimeout, updateReadTime, updateWriteTime, upgradereadwriteclosegetIdgetTlsDetails, startTls, startTlsdefault void switchProtocol(String protocolId, FutureCallback<ProtocolIOSession> callback) throws UnsupportedOperationException
protocolId - the application protocol IDcallback - the result callbackUnsupportedOperationException - if application protocol switch
 is not supported.default void registerProtocol(String protocolId, ProtocolUpgradeHandler upgradeHandler)
protocolId - the application protocol IDupgradeHandler - the upgrade handler.NamedEndpoint getInitialEndpoint()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.