@Internal public class ClientH2StreamMultiplexer extends Object
ProtocolIOSession that implements
client side HTTP/2 messaging protocol with full support for
multiplexed message transmission.| Constructor and Description |
|---|
ClientH2StreamMultiplexer(ProtocolIOSession ioSession,
FrameFactory frameFactory,
HttpProcessor httpProcessor,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
H2Config h2Config,
CharCodingConfig charCodingConfig,
H2StreamListener streamListener) |
ClientH2StreamMultiplexer(ProtocolIOSession ioSession,
HttpProcessor httpProcessor,
H2Config h2Config,
CharCodingConfig charCodingConfig) |
ClientH2StreamMultiplexer(ProtocolIOSession ioSession,
HttpProcessor httpProcessor,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
H2Config h2Config,
CharCodingConfig charCodingConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(CloseMode closeMode) |
EndpointDetails |
getEndpointDetails() |
String |
getId() |
SocketAddress |
getLocalAddress() |
ProtocolVersion |
getProtocolVersion() |
SocketAddress |
getRemoteAddress() |
Timeout |
getSocketTimeout() |
SSLSession |
getSSLSession() |
boolean |
isOpen() |
void |
onConnect() |
void |
onDisconnect() |
void |
onException(Exception cause) |
void |
onInput(ByteBuffer src) |
void |
onOutput() |
void |
onTimeout(Timeout timeout) |
void |
setSocketTimeout(Timeout timeout) |
String |
toString() |
public ClientH2StreamMultiplexer(ProtocolIOSession ioSession, FrameFactory frameFactory, HttpProcessor httpProcessor, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, CharCodingConfig charCodingConfig, H2StreamListener streamListener)
public ClientH2StreamMultiplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, CharCodingConfig charCodingConfig)
public ClientH2StreamMultiplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, H2Config h2Config, CharCodingConfig charCodingConfig)
public String getId()
getId in interface Identifiablepublic final void onConnect()
throws HttpException,
IOException
HttpExceptionIOExceptionpublic final void onInput(ByteBuffer src) throws HttpException, IOException
HttpExceptionIOExceptionpublic final void onOutput()
throws HttpException,
IOException
HttpExceptionIOExceptionpublic final void onTimeout(Timeout timeout) throws HttpException, IOException
HttpExceptionIOExceptionpublic final void onDisconnect()
public final void onException(Exception cause)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface HttpConnectionIOExceptionpublic void close(CloseMode closeMode)
close in interface ModalCloseablepublic boolean isOpen()
isOpen in interface HttpConnectionpublic void setSocketTimeout(Timeout timeout)
setSocketTimeout in interface SocketModalCloseablepublic SSLSession getSSLSession()
getSSLSession in interface HttpConnectionpublic EndpointDetails getEndpointDetails()
getEndpointDetails in interface HttpConnectionpublic Timeout getSocketTimeout()
getSocketTimeout in interface SocketModalCloseablepublic ProtocolVersion getProtocolVersion()
getProtocolVersion in interface HttpConnectionpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface HttpConnectionpublic SocketAddress getLocalAddress()
getLocalAddress in interface HttpConnectionCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.