net.jini.lookup
Class ServiceDiscoveryManager.CacheTask
java.lang.Object
net.jini.lookup.ServiceDiscoveryManager.CacheTask
- All Implemented Interfaces:
- TaskManager.Task, Runnable
- Direct Known Subclasses:
- ServiceDiscoveryManager.LookupCacheImpl.DiscardServiceTask, ServiceDiscoveryManager.LookupCacheImpl.LookupTask, ServiceDiscoveryManager.LookupCacheImpl.ProxyRegDropTask, ServiceDiscoveryManager.LookupCacheImpl.RegisterListenerTask, ServiceDiscoveryManager.ServiceIdTask
- Enclosing class:
- ServiceDiscoveryManager
private abstract static class ServiceDiscoveryManager.CacheTask
- extends Object
- implements TaskManager.Task
Class for implementing register/lookup/notify/dropProxy/discard tasks
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reg
protected ServiceDiscoveryManager.ProxyReg reg
thisTaskSeqN
protected long thisTaskSeqN
ServiceDiscoveryManager.CacheTask
public ServiceDiscoveryManager.CacheTask(ServiceDiscoveryManager.ProxyReg reg,
long seqN)
isFromProxy
public boolean isFromProxy(ServiceDiscoveryManager.ProxyReg reg)
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.
getProxyReg
public ServiceDiscoveryManager.ProxyReg getProxyReg()
- Returns the ProxyReg associated with this task (if any).
getSeqN
public long getSeqN()
- Returns the unique sequence number of this task.
run
public abstract void run()
- Specified by:
run
in interface Runnable
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.