/** {@inheritDoc} */ @Override public void restart(IgniteInternalCache cache) { invalidateLocalState(); cacheView = cache; ctx = cache.context(); rmvCheck = true; suspendFut.onDone(); }
/** * Check removed status. * * @throws IllegalStateException If removed. */ protected void checkRemoved() throws IllegalStateException { if (rmvd) throw removedError(); GridFutureAdapter<Void> suspendFut0 = suspendFut; if (suspendFut0 != null && !suspendFut0.isDone()) throw suspendedError(); if (rmvCheck) { try { rmvd = cacheView.get(key) == null; } catch (IgniteCheckedException e) { throw U.convertException(e); } rmvCheck = false; if (rmvd) { ctx.kernalContext().dataStructures().onRemoved(key, this); throw removedError(); } } }
/** * Check removed status. * * @throws IllegalStateException If removed. */ protected void checkRemoved() throws IllegalStateException { if (rmvd) throw removedError(); GridFutureAdapter<Void> suspendFut0 = suspendFut; if (suspendFut0 != null && !suspendFut0.isDone()) throw suspendedError(); if (rmvCheck) { try { rmvd = cacheView.get(key) == null; } catch (IgniteCheckedException e) { throw U.convertException(e); } rmvCheck = false; if (rmvd) { ctx.kernalContext().dataStructures().onRemoved(key, this); throw removedError(); } } }
/** {@inheritDoc} */ @Override public void restart(IgniteInternalCache cache) { invalidateLocalState(); cacheView = cache; ctx = cache.context(); rmvCheck = true; suspendFut.onDone(); }