net.jini.lookup
Class ServiceDiscoveryManager.LookupCacheImpl.ServiceDiscardTimerTask

java.lang.Object
  extended by net.jini.lookup.ServiceDiscoveryManager.LookupCacheImpl.ServiceDiscardTimerTask
All Implemented Interfaces:
TaskManager.Task, Runnable
Enclosing class:
ServiceDiscoveryManager.LookupCacheImpl

private final class ServiceDiscoveryManager.LookupCacheImpl.ServiceDiscardTimerTask
extends Object
implements TaskManager.Task

Task class used to determine whether or not to "commit" a service discard request, increasing the chances that the service will eventually be re-discovered. This task is also used to attempt a filter retry on an item in which the cache's filter initially returned indefinite.


Field Summary
private  long endTime
           
private  ServiceID serviceID
           
 
Constructor Summary
ServiceDiscoveryManager.LookupCacheImpl.ServiceDiscardTimerTask(ServiceID serviceID)
           
 
Method Summary
 void run()
           
 boolean runAfter(List tasks, int size)
          Returns true if current instance must be run after task(s) in task manager queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceID

private final ServiceID serviceID

endTime

private final long endTime
Constructor Detail

ServiceDiscoveryManager.LookupCacheImpl.ServiceDiscardTimerTask

public ServiceDiscoveryManager.LookupCacheImpl.ServiceDiscardTimerTask(ServiceID serviceID)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

runAfter

public boolean runAfter(List tasks,
                        int size)
Returns true if current instance must be run after task(s) in task manager queue.

Specified by:
runAfter in interface TaskManager.Task
Parameters:
tasks - the tasks to consider.
size - elements with index less than size are considered.


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.