| Modifier and Type | Field and Description |
|---|---|
| private final ChannelGroup | |
| private final CloseFuture | |
| protected final int | |
| private final TimeUnit | |
| private static final Logger | |
| protected final boolean | |
| private final TCPMetrics | |
| private final NetClientOptions | |
| private final Predicate | |
| protected final int | |
| private Future | |
| private final SSLHelper | |
| private final VertxInternal | |
| protected final int |
| Access | Constructor and Description |
|---|---|
| public | NetClientImpl(VertxInternal vertx, TCPMetrics<S> metrics, NetClientOptions options, CloseFuture closeFuture)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close(Handler<AsyncResult<Void>> handler)
Implements io. Close the client. |
| public Future | close()
Implements io. Like |
| public void | close(Promise<Void>
the promise to signal when close has completed completion)Implements io. Close this resource, the |
| public Future | connect(int port, String host)
Implements io. Like |
| public Future | connect(int port, String host, String serverName)
Implements io. Like |
| public Future | connect(SocketAddress remoteAddress)
Implements io. Like |
| public Future | connect(SocketAddress remoteAddress, String serverName)
Implements io. Like |
| public Future | |
| public NetClient | connect(int
the port port, String the host host, Handler<AsyncResult<NetSocket>> connectHandler)Implements io. Open a connection to a server at the specific |
| public NetClient | connect(int
the port port, String the host host, String the SNI server name serverName, Handler<AsyncResult<NetSocket>> connectHandler)Implements io. Open a connection to a server at the specific |
| public NetClient | connect(SocketAddress
the remote address remoteAddress, String the SNI server name serverName, Handler<AsyncResult<NetSocket>> connectHandler)Implements io. Open a connection to a server at the specific |
| public NetClient | connect(SocketAddress
the remote address remoteAddress, Handler<AsyncResult<NetSocket>> connectHandler)Implements io. Open a connection to a server at the specific |
| private void | connect(SocketAddress remoteAddress, String serverName, Promise<NetSocket> connectHandler, ContextInternal ctx)
|
| private void | connected(ContextInternal context, Channel ch, Promise<NetSocket> connectHandler, SocketAddress remoteAddress, SslChannelProvider sslChannelProvider, String applicationLayerProtocol, boolean registerWriteHandlers)
|
| public void | connectInternal(ProxyOptions
optional proxy configuration proxyOptions, SocketAddress the server address remoteAddress, SocketAddress the peer address (along with SSL) peerAddress, String the SNI server name (along with SSL) serverName, boolean whether to use SSL ssl, boolean wether to use ALPN (along with SSL) useAlpn, boolean whether to register event-bus write handlers registerWriteHandlers, Promise<NetSocket> the promise to resolve with the connect result connectHandler, ContextInternal the socket context context, int how many times reconnection is reattempted remainingAttempts)Open a socket to the |
| private void | connectInternal2(ProxyOptions proxyOptions, SocketAddress remoteAddress, SocketAddress peerAddress, SslChannelProvider sslChannelProvider, String serverName, boolean ssl, boolean useAlpn, boolean registerWriteHandlers, Promise<NetSocket> connectHandler, ContextInternal context, int remainingAttempts)
|
| private void | |
| public Metrics | getMetrics()
Implements io. Returns the metrics implementation. |
| protected void | |
| public boolean | isMetricsEnabled()
Overrides default io. Whether the metrics are enabled for this measured object |
| public Future | updateSSLOptions(SSLOptions
the new SSL options options, boolean force the update when options are equals force)Implements io. Update the client with new SSL |
| channelGroup | back to summary |
|---|---|
| private final ChannelGroup channelGroup | |
| closeFuture | back to summary |
|---|---|
| private final CloseFuture closeFuture | |
| idleTimeout | back to summary |
|---|---|
| protected final int idleTimeout | |
| idleTimeoutUnit | back to summary |
|---|---|
| private final TimeUnit idleTimeoutUnit | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| logEnabled | back to summary |
|---|---|
| protected final boolean logEnabled | |
| metrics | back to summary |
|---|---|
| private final TCPMetrics<S> metrics | |
| options | back to summary |
|---|---|
| private final NetClientOptions options | |
| proxyFilter | back to summary |
|---|---|
| private final Predicate<SocketAddress> proxyFilter | |
| readIdleTimeout | back to summary |
|---|---|
| protected final int readIdleTimeout | |
| sslChannelProvider | back to summary |
|---|---|
| private Future<SslContextUpdate> sslChannelProvider | |
| sslHelper | back to summary |
|---|---|
| private final SSLHelper sslHelper | |
| vertx | back to summary |
|---|---|
| private final VertxInternal vertx | |
| writeIdleTimeout | back to summary |
|---|---|
| protected final int writeIdleTimeout | |
| NetClientImpl | back to summary |
|---|---|
| public NetClientImpl(VertxInternal vertx, TCPMetrics<S> metrics, NetClientOptions options, CloseFuture closeFuture) | |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. 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 Implements io. Doc from io. Like
| |
| close | back to summary |
|---|---|
| public void close(Promise<Void> completion) Implements io. Doc from io. Close this resource, the | |
| connect | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| connect | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| connect | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| connect | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| connect | back to summary |
|---|---|
| public Future | |
| connect | back to summary |
|---|---|
| public NetClient connect(int port, String host, Handler<AsyncResult<NetSocket>> connectHandler) Implements io. Doc from io. Open a connection to a server at the specific
| |
| connect | back to summary |
|---|---|
| public NetClient connect(int port, String host, String serverName, Handler<AsyncResult<NetSocket>> connectHandler) Implements io. Doc from io. Open a connection to a server at the specific
| |
| connect | back to summary |
|---|---|
| public NetClient connect(SocketAddress remoteAddress, String serverName, Handler<AsyncResult<NetSocket>> connectHandler) Implements io. Doc from io. Open a connection to a server at the specific
The connect is done asynchronously and on success, a
| |
| connect | back to summary |
|---|---|
| public NetClient connect(SocketAddress remoteAddress, Handler<AsyncResult<NetSocket>> connectHandler) Implements io. Doc from io. Open a connection to a server at the specific
The connect is done asynchronously and on success, a
| |
| connect | back to summary |
|---|---|
| private void connect(SocketAddress remoteAddress, String serverName, Promise<NetSocket> connectHandler, ContextInternal ctx) | |
| connected | back to summary |
|---|---|
| private void connected(ContextInternal context, Channel ch, Promise<NetSocket> connectHandler, SocketAddress remoteAddress, SslChannelProvider sslChannelProvider, String applicationLayerProtocol, boolean registerWriteHandlers) | |
| connectInternal | back to summary |
|---|---|
| public void connectInternal(ProxyOptions proxyOptions, SocketAddress remoteAddress, SocketAddress peerAddress, String serverName, boolean ssl, boolean useAlpn, boolean registerWriteHandlers, Promise<NetSocket> connectHandler, ContextInternal context, int remainingAttempts) Open a socket to the
| |
| connectInternal2 | back to summary |
|---|---|
| private void connectInternal2(ProxyOptions proxyOptions, SocketAddress remoteAddress, SocketAddress peerAddress, SslChannelProvider sslChannelProvider, String serverName, boolean ssl, boolean useAlpn, boolean registerWriteHandlers, Promise<NetSocket> connectHandler, ContextInternal context, int remainingAttempts) | |
| failed | back to summary |
|---|---|
| private void failed(ContextInternal context, Channel ch, Throwable th, Promise<NetSocket> connectHandler) | |
| getMetrics | back to summary |
|---|---|
| public Metrics getMetrics() Implements io. Doc from io. Returns the metrics implementation. | |
| initChannel | back to summary |
|---|---|
| protected void initChannel(ChannelPipeline pipeline) | |
| isMetricsEnabled | back to summary |
|---|---|
| public boolean isMetricsEnabled() Overrides default io. Doc from io. Whether the metrics are enabled for this measured object
| |
| updateSSLOptions | back to summary |
|---|---|
| public Future Implements io. Doc from io. Update the client with new SSL The The boolean succeeded future result indicates whether the update occurred.
| |