Class LazyConnectionInfoCache

java.lang.Object
com.google.cloud.alloydb.LazyConnectionInfoCache

public class LazyConnectionInfoCache extends Object
  • Field Details

    • CLIENT_TIMEOUT_SECONDS

      public static final int CLIENT_TIMEOUT_SECONDS
      See Also:
  • Constructor Details

    • LazyConnectionInfoCache

      public LazyConnectionInfoCache(com.google.cloud.alloydb.ConnectionInfoRepository connectionInfoRepo, com.google.cloud.alloydb.v1alpha.InstanceName instanceURI, KeyPair clientConnectorKeyPair)
  • Method Details

    • getConnectionInfo

      public com.google.cloud.alloydb.ConnectionInfo getConnectionInfo()
    • forceRefresh

      public void forceRefresh()
      Force a new refresh of the instance data if the client certificate has expired.
    • refreshIfExpired

      public void refreshIfExpired()
      Force a new refresh of the instance data if the client certificate has expired.
    • close

      public void close()