Package | Description |
---|---|
net.jini.lease |
Standard service and utility classes for managing leases.
|
Modifier and Type | Method and Description |
---|---|
private LeaseRenewalManager.Entry |
LeaseRenewalManager.findEntry(Lease lease)
Find a lease entry, throw exception if not found or expired
normally
|
private LeaseRenewalManager.Entry |
LeaseRenewalManager.findEntryDo(Lease lease)
Find a lease entry, or null
|
private static LeaseRenewalManager.Entry |
LeaseRenewalManager.findLeaseFromIterator(Iterator iter,
Lease lease)
Find a lease entry, or null
|
Modifier and Type | Method and Description |
---|---|
private boolean |
LeaseRenewalManager.canBatch(LeaseRenewalManager.Entry e)
Return true if e can be batched with another entry that expires
between e.renew - renewBatchTimeWindow and e.renew.
|
boolean |
LeaseRenewalManager.Entry.canBatch(LeaseRenewalManager.Entry e)
Returns true if the renewal of this lease can be batched with
the (earlier) renewal of the given lease.
|
private void |
LeaseRenewalManager.insertEntry(LeaseRenewalManager.Entry e,
long now)
Calculate the preferred renew time, and put in the map
|
private void |
LeaseRenewalManager.logExpiration(LeaseRenewalManager.Entry e)
Logs a lease expiration, distinguishing between expected
and premature expirations.
|
private boolean |
LeaseRenewalManager.removeLeaseInRenew(LeaseRenewalManager.Entry e)
Remove from leaseInRenew, return true if removed
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.