Package org.jboss.netty.example.uptime
Class UptimeClient
java.lang.Object
org.jboss.netty.example.uptime.UptimeClient
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
FieldsModifier and TypeFieldDescription(package private) static final String
(package private) static final int
(package private) static final int
(package private) static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HOST
-
PORT
static final int PORT -
RECONNECT_DELAY
static final int RECONNECT_DELAY -
READ_TIMEOUT
static final int READ_TIMEOUT
-
-
Constructor Details
-
UptimeClient
public UptimeClient()
-
-
Method Details
-
main
- Throws:
Exception
-