| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ClientStatistics | |
| private final List | |
| private final ChannelListener. | |
| private final ChannelListener | |
| private final Map | |
| private final String | |
| private final Http2Channel | |
| private boolean | |
| private final Map | |
| private static final AtomicLong | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | Http2ClientConnection(Http2Channel http2Channel, boolean initialUpgradeRequest, String defaultHost, ClientStatistics clientStatistics, boolean secure)
|
| public | Http2ClientConnection(Http2Channel http2Channel, ClientCallback<ClientExchange> upgradeReadyCallback, ClientRequest clientRequest, String defaultHost, ClientStatistics clientStatistics, boolean secure)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseListener(ChannelListener<ClientConnection>
The close listener listener)Implements io. Adds a close listener, than will be invoked with the connection is closed |
| public void | |
| public ByteBufferPool | |
| public ChannelListener. | |
| public XnioIoThread | |
| public SocketAddress | |
| public <A extends SocketAddress> A | |
| public <T> T | |
| public SocketAddress | |
| public <A extends SocketAddress> A | |
| public ClientStatistics | |
| public XnioWorker | |
| private void | |
| public boolean | |
| public boolean | isOpen()
Implements io. Tells whether or not this channel is open. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public StreamConnection | performUpgrade()
Implements io. Upgrade the connection, if the underlying protocol supports it. |
| public void | sendPing(ClientConnection.
Overrides default io.
|
| public void | sendRequest(ClientRequest
The request to send. request, ClientCallback<ClientExchange> clientCallback)Implements io. Sends a client request. |
| public <T> T | |
| public boolean |
| clientStatistics | back to summary |
|---|---|
| private final ClientStatistics clientStatistics | |
| closeListeners | back to summary |
|---|---|
| private final List<ChannelListener<ClientConnection>> closeListeners | |
| closeSetter | back to summary |
|---|---|
| private final ChannelListener. | |
| closeTask | back to summary |
|---|---|
| private final ChannelListener<Http2Channel> closeTask | |
| currentExchanges | back to summary |
|---|---|
| private final Map<Integer, Http2ClientExchange> currentExchanges | |
| defaultHost | back to summary |
|---|---|
| private final String defaultHost | |
| http2Channel | back to summary |
|---|---|
| private final Http2Channel http2Channel | |
| initialUpgradeRequest | back to summary |
|---|---|
| private boolean initialUpgradeRequest | |
| outstandingPings | back to summary |
|---|---|
| private final Map<Http2ClientConnection. | |
| PING_COUNTER | back to summary |
|---|---|
| private static final AtomicLong PING_COUNTER | |
| secure | back to summary |
|---|---|
| private final boolean secure | |
| Http2ClientConnection | back to summary |
|---|---|
| public Http2ClientConnection(Http2Channel http2Channel, boolean initialUpgradeRequest, String defaultHost, ClientStatistics clientStatistics, boolean secure) | |
| Http2ClientConnection | back to summary |
|---|---|
| public Http2ClientConnection(Http2Channel http2Channel, ClientCallback<ClientExchange> upgradeReadyCallback, ClientRequest clientRequest, String defaultHost, ClientStatistics clientStatistics, boolean secure) | |
| addCloseListener | back to summary |
|---|---|
| public void addCloseListener(ChannelListener<ClientConnection> listener) Implements io. Doc from io. Adds a close listener, than will be invoked with the connection is closed
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this channel. After a channel is closed, any further attempt to invoke I/O
operations upon it will cause a If this channel is already closed then invoking this method has no effect. This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.
| |
| getBufferPool | back to summary |
|---|---|
| public ByteBufferPool getBufferPool() Implements io.
| |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. Implements io.
| |
| getIoThread | back to summary |
|---|---|
| public XnioIoThread getIoThread() Implements io.
| |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() Implements io.
| |
| getLocalAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getLocalAddress(Class<A> type) Implements io.
| |
| getOption | back to summary |
|---|---|
| public <T> T getOption(Option<T> option) throws IOException Implements io.
| |
| getPeerAddress | back to summary |
|---|---|
| public SocketAddress getPeerAddress() Implements io.
| |
| getPeerAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getPeerAddress(Class<A> type) Implements io.
| |
| getStatistics | back to summary |
|---|---|
| public ClientStatistics getStatistics() Implements io.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements io.
| |
| handleError | back to summary |
|---|---|
| private void handleError(Throwable t) | |
| isMultiplexingSupported | back to summary |
|---|---|
| public boolean isMultiplexingSupported() Implements io.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements io. Doc from java. Tells whether or not this channel is open.
| |
| isPingSupported | back to summary |
|---|---|
| public boolean isPingSupported() Overrides default io.
| |
| isPushSupported | back to summary |
|---|---|
| public boolean isPushSupported() Implements io.
| |
| isUpgraded | back to summary |
|---|---|
| public boolean isUpgraded() Implements io.
| |
| isUpgradeSupported | back to summary |
|---|---|
| public boolean isUpgradeSupported() Implements io.
| |
| performUpgrade | back to summary |
|---|---|
| public StreamConnection performUpgrade() throws IOException Implements io. Doc from io. Upgrade the connection, if the underlying protocol supports it. This should only be called after an upgrade request has been submitted and the target server has accepted the upgrade.
| |
| sendPing | back to summary |
|---|---|
| public void sendPing(ClientConnection. Overrides default io.
| |
| sendRequest | back to summary |
|---|---|
| public void sendRequest(ClientRequest request, ClientCallback<ClientExchange> clientCallback) Implements io. Doc from io. Sends a client request. The request object should not be modified after it has been submitted to the connection.
Request objects can be queued. Once the request is in a state that it is ready to be sent the
If Note that the request header may not be written out until after the callback has been invoked. This allows the client to write out a header with a gathering write if the request contains content.
| |
| setOption | back to summary |
|---|---|
| public <T> T setOption(Option<T> option, T value) throws IllegalArgumentException, IOException Implements io.
| |
| supportsOption | back to summary |
|---|---|
| public boolean supportsOption(Option<?> option) Implements io.
| |
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleEvent(Http2Channel
the channel event channel)Implements org. Handle the event on this channel. |
| private void | handleFinalResponse(Http2Channel channel, Http2ClientExchange request, Http2StreamSourceChannel response)
|
| private void | |
| private void |
| Http2ReceiveListener | back to summary |
|---|---|
| private Http2ReceiveListener() | |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(Http2Channel channel) Implements org. Doc from org. Handle the event on this channel.
| |
| handleFinalResponse | back to summary |
|---|---|
| private void handleFinalResponse(Http2Channel channel, Http2ClientExchange request, Http2StreamSourceChannel response) throws IOException | |
| handlePing | back to summary |
|---|---|
| private void handlePing(Http2PingStreamSourceChannel frame) | |
| handleThrowable | back to summary |
|---|---|
| private void handleThrowable(Throwable t) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Http2Channel |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleEvent(AbstractHttp2StreamSourceChannel
the channel event sourceChannel)Implements org. Handle the event on this channel. |
| http2Channel | back to summary |
|---|---|
| private final Http2Channel http2Channel | |
| ContinueReceiveListener | back to summary |
|---|---|
| pack-priv ContinueReceiveListener(Http2Channel http2Channel) | |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(AbstractHttp2StreamSourceChannel sourceChannel) Implements org. Doc from org. Handle the event on this channel.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| data | back to summary |
|---|---|
| private final byte[] data | |
| PingKey | back to summary |
|---|---|
| private PingKey(byte[] data) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |