Class ClientH2StreamMultiplexer
java.lang.Object
org.apache.hc.core5.http2.impl.nio.ClientH2StreamMultiplexer
- All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.core5.http.HttpConnection, org.apache.hc.core5.http.SocketModalCloseable, org.apache.hc.core5.io.ModalCloseable, org.apache.hc.core5.util.Identifiable
I/O event handler for events fired by
ProtocolIOSession that implements
client side HTTP/2 messaging protocol with full support for
multiplexed message transmission.- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig) ClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig) ClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, FrameFactory frameFactory, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, H2StreamListener streamListener) ClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, FrameFactory frameFactory, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, H2StreamListener streamListener, org.apache.hc.core5.util.Timeout validateAfterInactivity) ClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, FrameFactory frameFactory, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, H2StreamListener streamListener, org.apache.hc.core5.util.Timeout validateAfterInactivity, org.apache.hc.core5.util.Timeout pingAckTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidclose(org.apache.hc.core5.io.CloseMode closeMode) org.apache.hc.core5.http.EndpointDetailsgetId()org.apache.hc.core5.http.ProtocolVersionorg.apache.hc.core5.util.TimeoutbooleanisOpen()final voidfinal voidfinal voidonException(Exception cause) final voidonInput(ByteBuffer src) final voidonOutput()final voidonTimeout(org.apache.hc.core5.util.Timeout timeout) voidsetSocketTimeout(org.apache.hc.core5.util.Timeout timeout) inttoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hc.core5.http.HttpConnection
isIdle
-
Constructor Details
-
ClientH2StreamMultiplexer
public ClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, FrameFactory frameFactory, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, H2StreamListener streamListener, org.apache.hc.core5.util.Timeout validateAfterInactivity, org.apache.hc.core5.util.Timeout pingAckTimeout) - Since:
- 5.5
-
ClientH2StreamMultiplexer
public ClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, FrameFactory frameFactory, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, H2StreamListener streamListener, org.apache.hc.core5.util.Timeout validateAfterInactivity) -
ClientH2StreamMultiplexer
public ClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, FrameFactory frameFactory, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, H2StreamListener streamListener) -
ClientH2StreamMultiplexer
public ClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig) -
ClientH2StreamMultiplexer
public ClientH2StreamMultiplexer(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, H2Config h2Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig)
-
-
Method Details
-
toString
-
getId
- Specified by:
getIdin interfaceorg.apache.hc.core5.util.Identifiable
-
onConnect
- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
onInput
public final void onInput(ByteBuffer src) throws org.apache.hc.core5.http.HttpException, IOException - Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
onOutput
- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
onTimeout
public final void onTimeout(org.apache.hc.core5.util.Timeout timeout) throws org.apache.hc.core5.http.HttpException, IOException - Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
onDisconnect
public final void onDisconnect() -
onException
-
streamCount
public int streamCount()- Since:
- 5.5
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.hc.core5.http.HttpConnection- Throws:
IOException
-
close
public void close(org.apache.hc.core5.io.CloseMode closeMode) - Specified by:
closein interfaceorg.apache.hc.core5.io.ModalCloseable
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.apache.hc.core5.http.HttpConnection
-
setSocketTimeout
public void setSocketTimeout(org.apache.hc.core5.util.Timeout timeout) - Specified by:
setSocketTimeoutin interfaceorg.apache.hc.core5.http.SocketModalCloseable
-
getSSLSession
- Specified by:
getSSLSessionin interfaceorg.apache.hc.core5.http.HttpConnection
-
getEndpointDetails
public org.apache.hc.core5.http.EndpointDetails getEndpointDetails()- Specified by:
getEndpointDetailsin interfaceorg.apache.hc.core5.http.HttpConnection
-
getSocketTimeout
public org.apache.hc.core5.util.Timeout getSocketTimeout()- Specified by:
getSocketTimeoutin interfaceorg.apache.hc.core5.http.SocketModalCloseable
-
getProtocolVersion
public org.apache.hc.core5.http.ProtocolVersion getProtocolVersion()- Specified by:
getProtocolVersionin interfaceorg.apache.hc.core5.http.HttpConnection
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceorg.apache.hc.core5.http.HttpConnection
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceorg.apache.hc.core5.http.HttpConnection
-