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