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
Constructor Summary |
Lease(java.lang.String clientSessionId,
long leasePeriod,
java.lang.String locatorurl,
java.util.Map requestPayload,
ConnectionNotifier notifier,
java.util.Map clientLeases)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Lease
public Lease(java.lang.String clientSessionId,
long leasePeriod,
java.lang.String locatorurl,
java.util.Map requestPayload,
ConnectionNotifier notifier,
java.util.Map clientLeases)
startLease
public void startLease()
updateLease
public void updateLease(long leasePeriod,
java.util.Map requestMap)
updateLease
public void updateLease(long leasePeriod)
terminateLease
public void terminateLease(java.lang.String sessionId)
terminateLeaseUponFailure
public void terminateLeaseUponFailure(java.lang.String sessionId)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getLeasePingerId
protected java.lang.String getLeasePingerId()
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.