private abstract static class ServiceDiscoveryManager.CacheTask extends Object implements TaskManager.Task
Modifier and Type | Field and Description |
---|---|
protected ServiceDiscoveryManager.ProxyReg |
reg |
protected long |
thisTaskSeqN |
Constructor and Description |
---|
ServiceDiscoveryManager.CacheTask(ServiceDiscoveryManager.ProxyReg reg,
long seqN) |
Modifier and Type | Method and Description |
---|---|
ServiceDiscoveryManager.ProxyReg |
getProxyReg()
Returns the ProxyReg associated with this task (if any).
|
long |
getSeqN()
Returns the unique sequence number of this task.
|
boolean |
isFromProxy(ServiceDiscoveryManager.ProxyReg reg) |
abstract void |
run() |
boolean |
runAfter(List tasks,
int size)
Returns true if current instance must be run after task(s) in
task manager queue.
|
protected ServiceDiscoveryManager.ProxyReg reg
protected long thisTaskSeqN
public ServiceDiscoveryManager.CacheTask(ServiceDiscoveryManager.ProxyReg reg, long seqN)
public boolean isFromProxy(ServiceDiscoveryManager.ProxyReg reg)
public boolean runAfter(List tasks, int size)
runAfter
in interface TaskManager.Task
tasks
- the tasks to consider.size
- elements with index less than size are considered.public ServiceDiscoveryManager.ProxyReg getProxyReg()
public long getSeqN()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.