org.jboss.remoting
Class ConnectionValidator

java.lang.Object
  extended byjava.util.TimerTask
      extended byorg.jboss.remoting.ConnectionValidator
All Implemented Interfaces:
java.lang.Runnable

public class ConnectionValidator
extends java.util.TimerTask

Author:
Tom Elrod

Field Summary
static long DEFAULT_PING_PERIOD
          Default ping period.
 
Constructor Summary
ConnectionValidator(Client client)
           
ConnectionValidator(Client client, int pingPeriod)
           
 
Method Summary
 void addConnectionListener(ConnectionListener listener)
           
static boolean checkConnection(ClientInvoker clientInvoker)
           
 boolean removeConnectionListener(ConnectionListener listener)
           
 void run()
          The action to be performed by this timer task.
 
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
 

Field Detail

DEFAULT_PING_PERIOD

public static final long DEFAULT_PING_PERIOD
Default ping period. Value is 2 seconds.

See Also:
Constant Field Values
Constructor Detail

ConnectionValidator

public ConnectionValidator(Client client)

ConnectionValidator

public ConnectionValidator(Client client,
                           int pingPeriod)
Method Detail

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.