A TCP client.
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.
Anythingno subtypes hierarchy
| Initializer |
NetClient(NetClient unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
close | shared default void close()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. |
connect | shared default NetClient connect(Integer port, String host, Anything(Throwable|NetSocket) connectHandler)Open a connection to a server at the specific
Parameters:
|
isMetricsEnabled | shared actual default Boolean isMetricsEnabled()Whether the metrics are enabled for this measured object Refines Measured.isMetricsEnabled |
| Inherited Methods |
Methods inherited from: Objectequals |
Methods inherited from: Measured |