private static final class ServiceDiscoveryManager.CacheTaskDependencyManager extends Object implements FutureObserver
FutureObserver.ObservableFuture<T>
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ExecutorService |
executor |
private java.util.concurrent.ConcurrentLinkedQueue<ServiceDiscoveryManager.CacheTaskWrapper> |
pending |
Modifier | Constructor and Description |
---|---|
private |
CacheTaskDependencyManager(java.util.concurrent.ExecutorService e) |
Modifier and Type | Method and Description |
---|---|
void |
futureCompleted(java.util.concurrent.Future e) |
private void |
removeUselessTask(ServiceDiscoveryManager.ProxyReg reg)
Removes from the cache's task queue, all pending tasks associated
with the given ProxyReg.
|
private ServiceDiscoveryManager.CacheTaskWrapper |
submit(Runnable t) |
private final java.util.concurrent.ConcurrentLinkedQueue<ServiceDiscoveryManager.CacheTaskWrapper> pending
private final java.util.concurrent.ExecutorService executor
private CacheTaskDependencyManager(java.util.concurrent.ExecutorService e)
private ServiceDiscoveryManager.CacheTaskWrapper submit(Runnable t)
public void futureCompleted(java.util.concurrent.Future e)
futureCompleted
in interface FutureObserver
private void removeUselessTask(ServiceDiscoveryManager.ProxyReg reg)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.