Class LeaseExpirationMgr

java.lang.Object
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:
  • Method Details

    • 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