Send feedback
Class ConnectorRegistry (0.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public final class ConnectorRegistry
Configure the AlloyDB JDBC Connector.
Static Methods
close(String name)
public static void close(String name)
Close a named connector. This will stop all background credential refresh processes. All future
attempts to connect via this named connection will fail.
Parameter Name Description name
String
the name of the connector to close.
register(String name, ConnectorConfig config)
public static void register(String name, ConnectorConfig config)
Register a named connection so that it can later be referenced by name in a JDBC or R2DBC URL.
Parameters Name Description name
String
the named connection name.
config
ConnectorConfig
the full configuration of the connection.
reset()
public static void reset()
Resets the entire AlloyDB JDBC Connector. This will stop all background threads. The next
attempt to open a connection or register a configuration will start a new ConnectorRegistry.
Constructors
ConnectorRegistry()
public ConnectorRegistry()
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-03-22 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?