Package org.jboss.netty.example.uptime
Class UptimeClient
- java.lang.Object
-
- org.jboss.netty.example.uptime.UptimeClient
-
public final class UptimeClient extends java.lang.Object
Connects to a server periodically to measure and print the uptime of the server. This example demonstrates how to implement reliable reconnection mechanism in Netty.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
HOST
(package private) static int
PORT
(package private) static int
READ_TIMEOUT
(package private) static int
RECONNECT_DELAY
-
Constructor Summary
Constructors Constructor Description UptimeClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
-