private boolean checkCancelled() {
      if (shutdown) {
        return true;
      }
      return cache.getCancelCriterion().isCancelInProgress();
    }
Constructor : Creates and initializes the thread
geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java