You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2023/04/02 14:38:17 UTC

[shardingsphere] branch master updated: Add @Deprecated for ReadwriteSplittingDataSourceRuleConfiguration (#24958)

This is an automated email from the ASF dual-hosted git repository.

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new d679f81885c Add @Deprecated for ReadwriteSplittingDataSourceRuleConfiguration (#24958)
d679f81885c is described below

commit d679f81885ce313b947c4b2358a67f6f32fd2b4e
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun Apr 2 22:38:10 2023 +0800

    Add @Deprecated for ReadwriteSplittingDataSourceRuleConfiguration (#24958)
---
 .../api/rule/ReadwriteSplittingDataSourceRuleConfiguration.java  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/features/readwrite-splitting/api/src/main/java/org/apache/shardingsphere/readwritesplitting/api/rule/ReadwriteSplittingDataSourceRuleConfiguration.java b/features/readwrite-splitting/api/src/main/java/org/apache/shardingsphere/readwritesplitting/api/rule/ReadwriteSplittingDataSourceRuleConfiguration.java
index 063eeced37a..5e3ec39ed4d 100644
--- a/features/readwrite-splitting/api/src/main/java/org/apache/shardingsphere/readwritesplitting/api/rule/ReadwriteSplittingDataSourceRuleConfiguration.java
+++ b/features/readwrite-splitting/api/src/main/java/org/apache/shardingsphere/readwritesplitting/api/rule/ReadwriteSplittingDataSourceRuleConfiguration.java
@@ -37,6 +37,15 @@ public final class ReadwriteSplittingDataSourceRuleConfiguration {
     
     private final String loadBalancerName;
     
+    /**
+     * Will remove soon.
+     * 
+     * @param name name
+     * @param staticStrategy static strategy
+     * @param loadBalancerName load balancer name
+     * @deprecated will remove soon
+     */
+    @Deprecated
     public ReadwriteSplittingDataSourceRuleConfiguration(final String name, final StaticReadwriteSplittingStrategyConfiguration staticStrategy, final String loadBalancerName) {
         this(name, staticStrategy, TransactionalReadQueryStrategy.DYNAMIC, loadBalancerName);
     }