private synchronized void notifyWaiters(Connection c) {
      if (!pending) {
        return;
      }

      conn = c;
      pending = false;
      if (logger.isDebugEnabled()) {
        logger.debug("Notifying waiters that pending {} connection to {} is ready; {}",
            preserveOrder ? "ordered" : "unordered", id, this);
      }
      notifyAll();
    }
Synchronously set the connection and notify waiters that we are ready.

@param c the new connection
geode-core/src/main/java/org/apache/geode/internal/tcp/ConnectionTable.java