org.jboss.remoting
Class Lease

java.lang.Object
  extended by 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)
           
 
Method Summary
protected  java.lang.String getLeasePingerId()
           
 void startLease()
           
 void terminateLease(java.lang.String sessionId)
           
 void terminateLeaseUponFailure(java.lang.String sessionId)
           
 java.lang.String toString()
           
 void updateLease(long leasePeriod)
           
 void updateLease(long leasePeriod, java.util.Map requestMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lease

public Lease(java.lang.String clientSessionId,
             long leasePeriod,
             java.lang.String locatorurl,
             java.util.Map requestPayload,
             ConnectionNotifier notifier,
             java.util.Map clientLeases)
Method Detail

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.