@Contract(threading=IMMUTABLE_CONDITIONAL) @Internal public class ClientH2UpgradeHandler extends Object implements ProtocolUpgradeHandler
ProtocolIOSession
to HTTP/2 in case of a successful protocol negotiation.Constructor and Description |
---|
ClientH2UpgradeHandler(ClientH2StreamMultiplexerFactory http2StreamHandlerFactory) |
Modifier and Type | Method and Description |
---|---|
void |
upgrade(ProtocolIOSession ioSession,
FutureCallback<ProtocolIOSession> callback)
Upgrades application protocol of the given I/O session.
|
public ClientH2UpgradeHandler(ClientH2StreamMultiplexerFactory http2StreamHandlerFactory)
public void upgrade(ProtocolIOSession ioSession, FutureCallback<ProtocolIOSession> callback)
ProtocolUpgradeHandler
upgrade
in interface ProtocolUpgradeHandler
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.