/** * @return {@code True} if cache is DHT. */ public boolean isDht() { return cache != null && cache.isDht(); }
/** * @return Topology version future. */ public GridDhtTopologyFuture topologyVersionFuture() { GridCacheAdapter<K, V> cache = this.cache; if (cache == null) throw new IllegalStateException("Cache stopped: " + cacheName); assert cache.isNear() || cache.isDht() || cache.isColocated() || cache.isDhtAtomic() : cache; return topology(cache).topologyVersionFuture(); }
/** * @param cache Cache. */ public void cache(GridCacheAdapter<K, V> cache) { this.cache = cache; deferredDel = cache.isDht() || cache.isDhtAtomic() || cache.isColocated() || (cache.isNear() && cache.configuration().getAtomicityMode() == ATOMIC); }
/** * @return {@code True} if cache is DHT. */ public boolean isDht() { return cache != null && cache.isDht(); }
/** * @return Topology version future. */ public GridDhtTopologyFuture topologyVersionFuture() { GridCacheAdapter<K, V> cache = this.cache; if (cache == null) throw new IllegalStateException("Cache stopped: " + cacheName); assert cache.isNear() || cache.isDht() || cache.isColocated() || cache.isDhtAtomic() : cache; return topology(cache).topologyVersionFuture(); }
/** * @param cache Cache. */ public void cache(GridCacheAdapter<K, V> cache) { this.cache = cache; deferredDel = cache.isDht() || cache.isDhtAtomic() || cache.isColocated() || (cache.isNear() && cache.configuration().getAtomicityMode() == ATOMIC); }