Multiple connections to different servers can be made using the same instance.
This client supports a configurable number of connection attempts and a configurable delay between attempts.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Future | |
| public NetClient | Returns: a reference to this, so the API can be used fluentlythe port port, String the host host, Handler<AsyncResult<NetSocket>> connectHandler)Open a connection to a server at the specific |
| public Future | connect(int port, String host)
Like |
| public NetClient | |
| public Future | connect(int port, String host, String serverName)
Like |
| public NetClient | Returns: a reference to this, so the API can be used fluentlythe remote address remoteAddress, Handler<AsyncResult<NetSocket>> connectHandler)Open a connection to a server at the specific |
| public Future | connect(SocketAddress remoteAddress)
Like |
| public NetClient | Returns: a reference to this, so the API can be used fluentlythe remote address remoteAddress, String the SNI server name serverName, Handler<AsyncResult<NetSocket>> connectHandler)Open a connection to a server at the specific |
| public Future | connect(SocketAddress remoteAddress, String serverName)
Like |
| public default Future | Returns: a future signaling the update successthe new SSL options options)Update the client with new SSL |
| public default void | updateSSLOptions(SSLOptions
the new SSL options options, Handler<AsyncResult<Boolean>> the update handler handler)Like |
| public Future | Returns: a future signaling the update successthe new SSL options options, boolean force the update when options are equals force)Update the client with new SSL |
| public default void | updateSSLOptions(SSLOptions
the new SSL options options, boolean force the update when options are equals force, Handler<AsyncResult<Boolean>> the update handler handler)Like |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> handler) Close the client. Any sockets which have not been closed manually will be closed here. The close is asynchronous and may not complete until some time after the method has returned. | |
| close | back to summary |
|---|---|
| public Future Like | |
| connect | back to summary |
|---|---|
| public NetClient connect(int port, String host, Handler<AsyncResult<NetSocket>> connectHandler) Open a connection to a server at the specific
| |
| connect | back to summary |
|---|---|
| public Future Like | |
| connect | back to summary |
|---|---|
| public NetClient connect(int port, String host, String serverName, Handler<AsyncResult<NetSocket>> connectHandler) Open a connection to a server at the specific
| |
| connect | back to summary |
|---|---|
| public Future Like | |
| connect | back to summary |
|---|---|
| public NetClient connect(SocketAddress remoteAddress, Handler<AsyncResult<NetSocket>> connectHandler) Open a connection to a server at the specific
The connect is done asynchronously and on success, a
| |
| connect | back to summary |
|---|---|
| public Future Like | |
| connect | back to summary |
|---|---|
| public NetClient connect(SocketAddress remoteAddress, String serverName, Handler<AsyncResult<NetSocket>> connectHandler) Open a connection to a server at the specific
The connect is done asynchronously and on success, a
| |
| connect | back to summary |
|---|---|
| public Future Like | |
| updateSSLOptions | back to summary |
|---|---|
| public default Future Update the client with new SSL The boolean succeeded future result indicates whether the update occurred.
| |
| updateSSLOptions | back to summary |
|---|---|
| public default void updateSSLOptions(SSLOptions options, Handler<AsyncResult<Boolean>> handler) Like
| |
| updateSSLOptions | back to summary |
|---|---|
| public Future Update the client with new SSL The The boolean succeeded future result indicates whether the update occurred.
| |
| updateSSLOptions | back to summary |
|---|---|
| public default void updateSSLOptions(SSLOptions options, boolean force, Handler<AsyncResult<Boolean>> handler) Like
| |