Package com.sun.jini.mahalo
Class LeaseExpirationMgr
java.lang.Object
com.sun.jini.mahalo.LeaseExpirationMgr
- All Implemented Interfaces:
WeakTable.KeyGCHandler,LeaseManager
Lease Mgr implementation that aggressively expires leases as they expiration times occur.
Synchronizes on resource before canceling it.
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface that allows LeaseExpirationMgr to expire resources. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by WeakTable when it notices that a key has been collected and the value still exists.voidregister(LeasedResource resource) Notifies the manager of a new lease being created.voidrenewed(LeasedResource resource) Notifies the manager of a lease being renewed.
-
Method Details
-
register
Description copied from interface:LeaseManagerNotifies the manager of a new lease being created.- Specified by:
registerin interfaceLeaseManager- Parameters:
resource- The resource associated with the new Lease.
-
renewed
Description copied from interface:LeaseManagerNotifies the manager of a lease being renewed.- Specified by:
renewedin interfaceLeaseManager- Parameters:
resource- The resource associated with the new Lease.
-
keyGC
Description copied from interface:WeakTable.KeyGCHandlerCalled by WeakTable when it notices that a key has been collected and the value still exists.- Specified by:
keyGCin interfaceWeakTable.KeyGCHandler- Parameters:
value- The value associated with the collected key
-