Skip to content

Commit

Permalink
Fix: expose AuroraInitialConnectionStrategyPlugin with a plugin code (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiyvamz authored Dec 14, 2023
1 parent 29ef106 commit a6b1e17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.checkerframework.checker.nullness.qual.Nullable;
import software.amazon.jdbc.plugin.AuroraConnectionTrackerPluginFactory;
import software.amazon.jdbc.plugin.AuroraHostListConnectionPluginFactory;
import software.amazon.jdbc.plugin.AuroraInitialConnectionStrategyPluginFactory;
import software.amazon.jdbc.plugin.AwsSecretsManagerConnectionPluginFactory;
import software.amazon.jdbc.plugin.ConnectTimeConnectionPluginFactory;
import software.amazon.jdbc.plugin.DataCacheConnectionPluginFactory;
Expand Down Expand Up @@ -73,6 +74,7 @@ public class ConnectionPluginChainBuilder {
put("connectTime", ConnectTimeConnectionPluginFactory.class);
put("dev", DeveloperConnectionPluginFactory.class);
put("fastestResponseStrategy", FastestResponseStrategyPluginFactory.class);
put("initialConnection", AuroraInitialConnectionStrategyPluginFactory.class);
}
};

Expand All @@ -87,6 +89,7 @@ public class ConnectionPluginChainBuilder {
put(DriverMetaDataConnectionPluginFactory.class, 100);
put(DataCacheConnectionPluginFactory.class, 200);
put(AuroraHostListConnectionPluginFactory.class, 300);
put(AuroraInitialConnectionStrategyPluginFactory.class, 390);
put(AuroraConnectionTrackerPluginFactory.class, 400);
put(AuroraStaleDnsPluginFactory.class, 500);
put(ReadWriteSplittingPluginFactory.class, 600);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import software.amazon.jdbc.cleanup.CanReleaseResources;
import software.amazon.jdbc.plugin.AuroraConnectionTrackerPlugin;
import software.amazon.jdbc.plugin.AuroraHostListConnectionPlugin;
import software.amazon.jdbc.plugin.AuroraInitialConnectionStrategyPlugin;
import software.amazon.jdbc.plugin.AwsSecretsManagerConnectionPlugin;
import software.amazon.jdbc.plugin.DataCacheConnectionPlugin;
import software.amazon.jdbc.plugin.DefaultConnectionPlugin;
Expand Down Expand Up @@ -79,6 +80,7 @@ public class ConnectionPluginManager implements CanReleaseResources, Wrapper {
put(ReadWriteSplittingPlugin.class, "plugin:readWriteSplitting");
put(FastestResponseStrategyPlugin.class, "plugin:fastestResponseStrategy");
put(DefaultConnectionPlugin.class, "plugin:targetDriver");
put(AuroraInitialConnectionStrategyPlugin.class, "plugin:initialConnection");
}
};

Expand Down

0 comments on commit a6b1e17

Please sign in to comment.