コード例 #1
0
  /**
   * @param cacheId Cache ID to check.
   * @return {@code True} if cache is stopping by this exchange.
   */
  private boolean stopping(int cacheId) {
    boolean stopping = false;

    if (!F.isEmpty(reqs)) {
      for (DynamicCacheChangeRequest req : reqs) {
        if (cacheId == CU.cacheId(req.cacheName())) {
          stopping = req.stop();

          break;
        }
      }
    }

    return stopping;
  }
コード例 #2
0
 private void blockGateways() {
   for (DynamicCacheChangeRequest req : reqs) {
     if (req.stop()) cctx.cache().blockGateway(req);
   }
 }