int getCloseEndpointExecutorQueueSize() {
    ScheduledThreadPoolExecutor implementation =
        (ScheduledThreadPoolExecutor) closeEndpointExecutor;
    return implementation.getQueue().size();
  }
returns true if there are still receiver threads for the given member
geode-core/src/main/java/org/apache/geode/distributed/internal/direct/DirectChannel.java