public class LeaseExpirationMgr extends Object implements LeaseManager, WeakTable.KeyGCHandler
LeaseManager
Modifier and Type | Class and Description |
---|---|
static interface |
LeaseExpirationMgr.Expirer
Interface that allows LeaseExpirationMgr to expire resources.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public void register(LeasedResource resource)
LeaseManager
register
in interface LeaseManager
resource
- The resource associated with the new Lease.public void renewed(LeasedResource resource)
LeaseManager
renewed
in interface LeaseManager
resource
- The resource associated with the new Lease.public void keyGC(Object value)
WeakTable.KeyGCHandler
keyGC
in interface WeakTable.KeyGCHandler
value
- The value associated with the collected keyCopyright © GigaSpaces.