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