Package com.google.cloud.alloydb
Class LazyConnectionInfoCache
java.lang.Object
com.google.cloud.alloydb.LazyConnectionInfoCache
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLazyConnectionInfoCache(com.google.cloud.alloydb.ConnectionInfoRepository connectionInfoRepo, com.google.cloud.alloydb.v1alpha.InstanceName instanceURI, KeyPair clientConnectorKeyPair) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidForce a new refresh of the instance data if the client certificate has expired.com.google.cloud.alloydb.ConnectionInfovoidForce a new refresh of the instance data if the client certificate has expired.
-
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()
-