public final class ShardingSphereResource extends Object
| 构造器和说明 |
|---|
ShardingSphereResource() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close(Collection<String> dataSources)
Close data sources.
|
void |
close(DataSource dataSource)
Close data source.
|
Collection<DataSource> |
getAllInstanceDataSources()
Get all instance data sources.
|
Collection<String> |
getNotExistedResources(Collection<String> resourceNames)
Get not existed resource name.
|
public Collection<DataSource> getAllInstanceDataSources()
public Collection<String> getNotExistedResources(Collection<String> resourceNames)
resourceNames - resource names to be judgedpublic void close(Collection<String> dataSources) throws SQLException
dataSources - data sources to be closedSQLException - exceptionpublic void close(DataSource dataSource) throws SQLException
dataSource - data source to be closedSQLException - exceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.