|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.lease.LeaseRenewalManager.RenewTask
private final class LeaseRenewalManager.RenewTask
Field Summary | |
---|---|
private List |
bList
Entries of leases to renew (if multiple, all can be batched) |
private boolean |
noRenewals
True if this task only holds leases that have reached their actual or desired expiration |
Constructor Summary | |
---|---|
LeaseRenewalManager.RenewTask(long now)
Create a collection of entries whose leases can be batch renewed with the last lease in the map, or a list of entries whose leases need to be removed. |
Method Summary | |
---|---|
private List |
processBadLeases(long now)
Find any expired leases, remove them from bList and leaseInRenew, and return any with listeners. |
void |
run()
|
boolean |
runAfter(List tasks,
int size)
No ordering. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final List bList
private final boolean noRenewals
Constructor Detail |
---|
LeaseRenewalManager.RenewTask(long now)
Method Detail |
---|
public void run()
run
in interface Runnable
public boolean runAfter(List tasks, int size)
runAfter
in interface TaskManager.Task
tasks
- the tasks to consider. A read-only List, with all
elements instanceof Task.size
- elements with index less than size should be consideredprivate List processBadLeases(long now)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |