org.jboss.remoting
Class Lease
java.lang.Object
org.jboss.remoting.Lease
- public class Lease
- extends java.lang.Object
This class is used on the remoting server to maintain lease information
for remoting clients. Will generate callback to ConnectionListener interface
if determined that client no longer available.
- Author:
- Tom Elrod
Field Summary |
static long |
TIMER_DELAY
This value (defaults to 5 seconds) represents how much of a
delay will be built into starting the lease timer. |
Constructor Summary |
Lease(java.lang.String clientSessionId,
long leasePeriod,
java.lang.String locatorurl,
java.util.Map requestPayload,
ConnectionNotifier notifier)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TIMER_DELAY
public static long TIMER_DELAY
- This value (defaults to 5 seconds) represents how much of a
delay will be built into starting the lease timer. This is
done since need to give the client some extra buffer time to
start sending lease pings. Otherwise, client might get the
lease time and start pinging before the lease time runs out.
Lease
public Lease(java.lang.String clientSessionId,
long leasePeriod,
java.lang.String locatorurl,
java.util.Map requestPayload,
ConnectionNotifier notifier)
startLease
public void startLease()
updateLease
public void updateLease(long leasePeriod)
terminateLease
public void terminateLease(long leasePeriod)
Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.