@Beta public class JdbcDataStoreFactory extends Object implements ExternalDataStoreFactory<DataSource>
DataSource
.
Implementation is based on HikariDataSource
. ExternalDataStoreConfig.getProperties()
are passed directly
to HikariConfig
. For available options see
HikariCP configuration
Constructor and Description |
---|
JdbcDataStoreFactory() |
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataStore()
Returns configured data store.
|
void |
init(ExternalDataStoreConfig config)
Initialize factory with the config
|
public void init(ExternalDataStoreConfig config)
ExternalDataStoreFactory
init
in interface ExternalDataStoreFactory<DataSource>
config
- configuration of the given datastorepublic DataSource getDataStore()
ExternalDataStoreFactory
getDataStore
in interface ExternalDataStoreFactory<DataSource>
Copyright © 2022 Hazelcast, Inc.. All rights reserved.