Close a named connector. This will stop all background credential refresh processes. All future
attempts to connect via this named connection will fail.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eConnectorRegistry\u003c/code\u003e class is used to configure the AlloyDB JDBC Connector.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eConnectorRegistry\u003c/code\u003e is 0.2.0, with 0.1.2 being an older version.\u003c/p\u003e\n"],["\u003cp\u003eYou can close a named connector and stop associated background processes using the \u003ccode\u003eclose(String name)\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eregister(String name, ConnectorConfig config)\u003c/code\u003e method allows you to register a named connection that can later be referenced in JDBC or R2DBC URLs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereset()\u003c/code\u003e method stops all background threads and resets the entire AlloyDB JDBC Connector.\u003c/p\u003e\n"]]],[],null,["# Class ConnectorRegistry (0.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.2.0 (latest)](/java/docs/reference/alloydb-jdbc-connector/latest/com.google.cloud.alloydb.ConnectorRegistry)\n- [0.1.2](/java/docs/reference/alloydb-jdbc-connector/0.1.2/com.google.cloud.alloydb.ConnectorRegistry) \n\n public final class ConnectorRegistry\n\nConfigure the AlloyDB JDBC Connector. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e ConnectorRegistry \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### close(String name)\n\n public static void close(String name)\n\nClose a named connector. This will stop all background credential refresh processes. All future\nattempts to connect via this named connection will fail.\n\n### register(String name, ConnectorConfig config)\n\n public static void register(String name, ConnectorConfig config)\n\nRegister a named connection so that it can later be referenced by name in a JDBC or R2DBC URL.\n\n### reset()\n\n public static void reset()\n\nResets the entire AlloyDB JDBC Connector. This will stop all background threads. The next\nattempt to open a connection or register a configuration will start a new ConnectorRegistry.\n\nConstructors\n------------\n\n### ConnectorRegistry()\n\n public ConnectorRegistry()"]]