/** {@inheritDoc} */ @Override public int localSize(CachePeekMode[] peekModes) throws IgniteCheckedException { return delegate.get().localSize(peekModes); }
/** {@inheritDoc} */ @Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) { if (cache == null) return 0; try { return cache.localSize(peekModes); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** {@inheritDoc} */ @Override public int localSize(CachePeekMode[] peekModes) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.localSize(peekModes); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public int localSize(CachePeekMode... peekModes) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { return delegate.localSize(peekModes); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public int localSize(CachePeekMode... peekModes) { try { return delegate.localSize(peekModes); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) { if (cache == null) return 0; try { return cache.localSize(peekModes); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** {@inheritDoc} */ @Override public int localSize(CachePeekMode[] peekModes) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.localSize(peekModes); } finally { gate.leave(prev); } }