Package org.jboss.netty.example.uptime
Class UptimeClient
- java.lang.Object
-
- org.jboss.netty.example.uptime.UptimeClient
-
public final class UptimeClient extends java.lang.ObjectConnects 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.StringHOST(package private) static intPORT(package private) static intREAD_TIMEOUT(package private) static intRECONNECT_DELAY
-
Constructor Summary
Constructors Constructor Description UptimeClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)
-