proxy.closeProxy();
/** * @param cacheName Cache name. * @param stop {@code True} for stop cache, {@code false} for close cache. * @param restart Restart flag. */ void blockGateway(String cacheName, boolean stop, boolean restart) { // Break the proxy before exchange future is done. IgniteCacheProxyImpl<?, ?> proxy = jcacheProxy(cacheName, false); if (restart) { GridCacheAdapter<?, ?> cache = caches.get(cacheName); if (cache != null) cache.active(false); } if (proxy != null) { if (stop) { if (restart) proxy.restart(); proxy.context().gate().stopped(); } else proxy.closeProxy(); } }