private void cancelAllEntryExpiryTasks() {
    // This method gets called during LocalRegion construction
    // in which case the final entryExpiryTasks field can still be null
    if (entryExpiryTasks.isEmpty()) {
      return;
    }
    boolean doPurge = false;
    Iterator<EntryExpiryTask> iterator = entryExpiryTasks.values().iterator();
    while (iterator.hasNext()) {
      EntryExpiryTask task = iterator.next();
      iterator.remove();
      // no need to call incCancels since we will call forcePurge
      task.cancel();
      doPurge = true;
    }
    if (doPurge) {
      // do a force to not leave any refs to this region
      cache.getExpirationScheduler().forcePurge();
    }
  }
Used by unit tests to get access to the RegionTTLExpiryTask of this region. Returns null if no
task exists.
geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java