In general these objects are not thread safe, they should only be used by the IO thread that is responsible for the connection. As a result this client does not provide a mechanism to perform blocking IO, it is designed for async operation only.
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseListener(ChannelListener<ClientConnection>
The close listener listener)Adds a close listener, than will be invoked with the connection is closed |
| 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 | Returns: the statistics information, ornull if statistics are not supported or disabled
|
| public XnioWorker | |
| public boolean | |
| public boolean | |
| public default boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public StreamConnection | Returns: The resulting StreamConnectionUpgrade the connection, if the underlying protocol supports it. |
| public default void | |
| public void | sendRequest(final ClientRequest
The request to send. request, final ClientCallback<ClientExchange> clientCallback)Sends a client request. |
| public <T> T | |
| public boolean |
| addCloseListener | back to summary |
|---|---|
| public void addCloseListener(ChannelListener<ClientConnection> listener) Adds a close listener, than will be invoked with the connection is closed
| |
| getBufferPool | back to summary |
|---|---|
public ByteBufferPool getBufferPool()
| |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. | |
| getIoThread | back to summary |
|---|---|
| public XnioIoThread getIoThread() | |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() | |
| getLocalAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getLocalAddress(Class<A> type) | |
| getOption | back to summary |
|---|---|
| public <T> T getOption(Option<T> option) throws IOException | |
| getPeerAddress | back to summary |
|---|---|
| public SocketAddress getPeerAddress() | |
| getPeerAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getPeerAddress(Class<A> type) | |
| getStatistics | back to summary |
|---|---|
public ClientStatistics getStatistics()
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() | |
| isMultiplexingSupported | back to summary |
|---|---|
public boolean isMultiplexingSupported()
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Redeclares java. Doc from java. Tells whether or not this channel is open.
| |
| isPingSupported | back to summary |
|---|---|
public default boolean isPingSupported()
| |
| isPushSupported | back to summary |
|---|---|
public boolean isPushSupported()
| |
| isUpgraded | back to summary |
|---|---|
| public boolean isUpgraded() | |
| isUpgradeSupported | back to summary |
|---|---|
| public boolean isUpgradeSupported() | |
| performUpgrade | back to summary |
|---|---|
| public StreamConnection performUpgrade() throws IOException 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 default void sendPing(ClientConnection. | |
| sendRequest | back to summary |
|---|---|
| public void sendRequest(final ClientRequest request, final ClientCallback<ClientExchange> clientCallback) 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 | |
| supportsOption | back to summary |
|---|---|
| public boolean supportsOption(Option<?> option) | |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| acknowledged | back to summary |
|---|---|
| public void acknowledged() | |
| failed | back to summary |
|---|---|
| public void failed(IOException e) | |