Reset or Shutdown the ConnectorRegistry #1687
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Feature Description
An application should use the public Java API to either shut down or reset the connector registry. Update the methods
as follows:
ConnectorRegistry.shutdown()
- Stops all threads, clears all config, and causes future attempts to connect will fail.ConnectorRegistry.reset()
- Stops all threads, clears all config, future attempts to connect will start a new Connector.An application would use
shutdown()
when it receives a callback to gracefully stop itself. The application would then have gracefully stop all its background processes. The application calls shutdown() so that if some all other background threads cannot start a database connection after ConnectorRegistry.shutdown() is called.An application would use
reset()
when it needs to reload its configuration. This would gracefully close all Connector instances, causing them to reload on the next connection attempt.Sample code
No response
Alternatives Considered
No response
Additional Details
No response
The text was updated successfully, but these errors were encountered: