public void forceRefresh()

in core/src/main/java/com/google/cloud/sql/core/RefreshAheadStrategy.java [160:182]


  public void forceRefresh() {
    synchronized (connectionInfoGuard) {
      if (closed) {
        throw new IllegalStateException("Named connection closed");
      }
      // Don't force a refresh until the current refresh operation
      // has produced a successful refresh.
      if (refreshRunning) {
        return;
      }

      if (next != null) {
        next.cancel(false);
      }

      logger.debug(
          String.format(
              "[%s] Force Refresh: the next refresh operation was cancelled."
                  + " Scheduling new refresh operation immediately.",
              name));
      next = this.startRefreshAttempt();
    }
  }