protected CacheSPI<K, V> getCache() { return node.getCache(); } }
@Override @SuppressWarnings("unchecked") public boolean containsKey(Object o) { Fqn fqn = fqnFor(o); Set keys = node.getCache().getKeys(fqn); return keys != null && keys.contains(o); }
@Override @SuppressWarnings("unchecked") public V get(Object key) { return (V) node.getCache().get(fqnFor(key), key); }
@SuppressWarnings("unchecked") public Object put(Object key, Object value) { return node.getCache().put(fqnFor(key), key, value); }
@SuppressWarnings("unchecked") public V remove(Object key) { return (V) node.getCache().remove(fqnFor(key), key); }
public Set<NodeLock> acquireAll(Object caller, long timeout, LockType lock_type, boolean excludeInternalFqns) throws LockingException, TimeoutException, InterruptedException { boolean acquired; if (lock_type == LockType.NONE || (excludeInternalFqns && node.getCache().getInternalFqns().contains(getFqn()))) { return Collections.emptySet(); } Set<NodeLock> retval = new HashSet<NodeLock>(); acquired = acquire(caller, timeout, lock_type); if (acquired) { retval.add(this); } for (NodeSPI n : node.getChildrenDirect()) { retval.addAll(n.getLock().acquireAll(caller, timeout, lock_type, excludeInternalFqns)); } return retval; }