GigaSpaces XAP 9.7.2 API

com.sun.jini.mahalo
Class LeaseExpirationMgr

java.lang.Object
  extended by com.sun.jini.mahalo.LeaseExpirationMgr
All Implemented Interfaces:
WeakTable.KeyGCHandler, LeaseManager

public class LeaseExpirationMgr
extends Object
implements LeaseManager, WeakTable.KeyGCHandler

Lease Mgr implementation that aggressively expires leases as they expiration times occur. Synchronizes on resource before canceling it.

Author:
Sun Microsystems, Inc.
See Also:
LeaseManager

Nested Class Summary
static interface LeaseExpirationMgr.Expirer
          Interface that allows LeaseExpirationMgr to expire resources.
 
Method Summary
 void keyGC(Object value)
          Called by WeakTable when it notices that a key has been collected and the value still exists.
 void register(LeasedResource resource)
          Notifies the manager of a new lease being created.
 void renewed(LeasedResource resource)
          Notifies the manager of a lease being renewed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public void register(LeasedResource resource)
Description copied from interface: LeaseManager
Notifies the manager of a new lease being created.

Specified by:
register in interface LeaseManager
Parameters:
resource - The resource associated with the new Lease.

renewed

public void renewed(LeasedResource resource)
Description copied from interface: LeaseManager
Notifies the manager of a lease being renewed.

Specified by:
renewed in interface LeaseManager
Parameters:
resource - The resource associated with the new Lease.

keyGC

public void keyGC(Object value)
Description copied from interface: WeakTable.KeyGCHandler
Called by WeakTable when it notices that a key has been collected and the value still exists.

Specified by:
keyGC in interface WeakTable.KeyGCHandler
Parameters:
value - The value associated with the collected key

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.