Ejemplo n.º 1
0
 private V cancel(CacheLine<V> line) {
   // FIXME: this is a race condition, the item could expire
   // between the time it is replaced, and it is cancelled
   V oldValue = line.getValue();
   ExecutionPool.removePulse(line);
   line.cancel();
   return oldValue;
 }
Ejemplo n.º 2
0
 @Override
 public void onEviction(Object key, CacheLine<V> value) {
   ExecutionPool.removePulse(value);
 }