boolean isWaiting(final Cache cache) {
    return isRunning() && (cache.getDistributedSystem().isConnected() || cache.isReconnecting());
  }
Determines whether to continue waiting and keep the Geode non-Server data member running.

@param cache the Cache associated with this Geode (non-Server) data member.
@return a boolean value indicating whether the Geode data member should continue running, as
        determined by the running flag and a connection to the distributed system (Geode
        cluster).
geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java