/** * @param gate Cache gateway. * @return {@code True} if enter successful. */ private boolean onEnterIfNoStop(@Nullable GridCacheGateway<K, V> gate) { try { checkProxyIsValid(gate, false); } catch (Exception e) { return false; } return lock ? gate.enterIfNotStopped() : gate.enterIfNotStoppedNoLock(); }
/** * @param gate Cache gateway. * @return {@code True} if enter successful. */ private boolean onEnterIfNoStop(@Nullable GridCacheGateway<K, V> gate) { try { checkProxyIsValid(gate, false); } catch (Exception e) { return false; } return lock ? gate.enterIfNotStopped() : gate.enterIfNotStoppedNoLock(); }