runAfter
public boolean runAfter(List tasks,
int size)
Returns true if the current instance of this task must be run
after at least one task in the task manager queue.
The criteria for determining what value to return:
If the task list contains any RegisterListenerTasks,
other LookupTasks, or NotifyEventTasks associated with
this task's lookup service (ProxyReg), if those tasks
were queued prior to this task (have lower sequence
numbers), then run those tasks before this task (return
true). Otherwise this task can be run immediately
(return false).
This method was added to address Bug ID 6291851.
- Specified by:
runAfter
in interface TaskManager.Task
- Overrides:
runAfter
in class ServiceDiscoveryManager.CacheTask
- Parameters:
tasks
- the tasks to consider.size
- elements with index less than size are considered.