public boolean isQueueInitializedWithWait(long waitTime) {
    try {
      synchronized (initialized) {
        if (!isQueueInitialized()) {
          waitForInitialized(waitTime);
        }
      }
    } catch (InterruptedException interruptedException) {
      Thread.currentThread().interrupt();
      return false;
    }
    return isQueueInitialized();
  }
@param isPrimary whether this is the primary queue for a client
geode-core/src/main/java/org/apache/geode/internal/cache/ha/HARegionQueue.java