You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ch...@apache.org on 2024/04/12 10:59:17 UTC
(shardingsphere) branch master updated: change OnlineDatabaseConnectionManager to interface (#30864)
This is an automated email from the ASF dual-hosted git repository.
chengzhang 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 449eba8c2e5 change OnlineDatabaseConnectionManager to interface (#30864)
449eba8c2e5 is described below
commit 449eba8c2e52fd9ab6298569bdbe959f3b1d6f80
Author: Chuxin Chen <ch...@qq.com>
AuthorDate: Fri Apr 12 18:59:09 2024 +0800
change OnlineDatabaseConnectionManager to interface (#30864)
---
.../executor/sql/prepare/driver/OnlineDatabaseConnectionManager.java | 2 +-
.../driver/jdbc/core/connection/DriverDatabaseConnectionManager.java | 2 +-
.../proxy/backend/connector/ProxyDatabaseConnectionManager.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/prepare/driver/OnlineDatabaseConnectionManager.java b/infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/prepare/driver/OnlineDatabaseConnectionManager.java
index c6e356e2f49..6c27a58f30c 100644
--- a/infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/prepare/driver/OnlineDatabaseConnectionManager.java
+++ b/infra/executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/prepare/driver/OnlineDatabaseConnectionManager.java
@@ -22,5 +22,5 @@ package org.apache.shardingsphere.infra.executor.sql.prepare.driver;
*
* @param <C> type of database connection
*/
-public abstract class OnlineDatabaseConnectionManager<C> implements DatabaseConnectionManager<C> {
+public interface OnlineDatabaseConnectionManager<C> extends DatabaseConnectionManager<C> {
}
diff --git a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManager.java b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManager.java
index d4f74fad804..259958d7946 100644
--- a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManager.java
+++ b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManager.java
@@ -63,7 +63,7 @@ import java.util.Random;
/**
* Database connection manager of ShardingSphere-JDBC.
*/
-public final class DriverDatabaseConnectionManager extends OnlineDatabaseConnectionManager<Connection> implements AutoCloseable {
+public final class DriverDatabaseConnectionManager implements OnlineDatabaseConnectionManager<Connection>, AutoCloseable {
private final Map<String, DataSource> dataSourceMap = new LinkedHashMap<>();
diff --git a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/connector/ProxyDatabaseConnectionManager.java b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/connector/ProxyDatabaseConnectionManager.java
index 8305f66ee56..99e7df7d50e 100644
--- a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/connector/ProxyDatabaseConnectionManager.java
+++ b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/connector/ProxyDatabaseConnectionManager.java
@@ -51,7 +51,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
*/
@RequiredArgsConstructor
@Getter
-public final class ProxyDatabaseConnectionManager extends OnlineDatabaseConnectionManager<Connection> {
+public final class ProxyDatabaseConnectionManager implements OnlineDatabaseConnectionManager<Connection> {
private final ConnectionSession connectionSession;