コード例 #1
0
  /** {@inheritDoc} */
  @Override
  void onCancelAtStop() {
    super.onCancelAtStop();

    for (GridCacheQueryFutureAdapter fut : futs.values())
      try {
        fut.cancel();
      } catch (IgniteCheckedException e) {
        U.error(log, "Failed to cancel running query future: " + fut, e);
      }

    U.interrupt(threads.values());
  }
コード例 #2
0
 /** {@inheritDoc} */
 @Override
 public boolean cancel() throws IgniteCheckedException {
   return fut.cancel();
 }