public ConnectionInfoCache create()

in alloydb-jdbc-connector/src/main/java/com/google/cloud/alloydb/DefaultConnectionInfoCacheFactory.java [35:46]


  public ConnectionInfoCache create(
      ListeningScheduledExecutorService executor,
      ConnectionInfoRepository connectionInfoRepo,
      InstanceName instanceName,
      KeyPair clientConnectorKeyPair,
      long minRefreshDelayMs) {
    if (refreshStrategy == RefreshStrategy.LAZY) {
      return new LazyConnectionInfoCache(connectionInfoRepo, instanceName, clientConnectorKeyPair);
    }
    return new RefreshAheadConnectionInfoCache(
        executor, connectionInfoRepo, instanceName, clientConnectorKeyPair, minRefreshDelayMs);
  }