public final class MetaDataContexts extends Object implements AutoCloseable
| Constructor and Description |
|---|
MetaDataContexts(MetaDataPersistService metaDataPersistService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Collection<String> |
getAllSchemaNames()
Get all schema names.
|
Optional<org.apache.shardingsphere.infra.lock.ShardingSphereLock> |
getLock()
Get lock.
|
org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData |
getMetaData(String schemaName)
Get meta data.
|
Optional<MetaDataPersistService> |
getMetaDataPersistService()
Get persist service.
|
public MetaDataContexts(MetaDataPersistService metaDataPersistService)
public Optional<MetaDataPersistService> getMetaDataPersistService()
public Collection<String> getAllSchemaNames()
public org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData getMetaData(String schemaName)
schemaName - schema namepublic Optional<org.apache.shardingsphere.infra.lock.ShardingSphereLock> getLock()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.