org.jboss.remoting
Class ConnectionValidator
java.lang.Object
java.util.TimerTask
org.jboss.remoting.ConnectionValidator
- All Implemented Interfaces:
- java.lang.Runnable
- public class ConnectionValidator
- extends java.util.TimerTask
- Author:
- Tom Elrod
Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PING_PERIOD
public static final long DEFAULT_PING_PERIOD
- Default ping period. Value is 2 seconds.
- See Also:
- Constant Field Values
ConnectionValidator
public ConnectionValidator(Client client)
ConnectionValidator
public ConnectionValidator(Client client,
int pingPeriod)
addConnectionListener
public void addConnectionListener(ConnectionListener listener)
removeConnectionListener
public boolean removeConnectionListener(ConnectionListener listener)
run
public void run()
- The action to be performed by this timer task.
checkConnection
public static boolean checkConnection(ClientInvoker clientInvoker)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.