Package org.apache.geode.datasource
Interface PooledDataSourceFactory
@Experimental
public interface PooledDataSourceFactory
Classes that implement this interface can be used as the class name specified
in the "gfsh create data-source --pooled-data-source-factory-class" parameter.
This parameter is only valid when the data-source type is "POOLED".
For more information see "gfsh create data-source".
This parameter is only valid when the data-source type is "POOLED".
For more information see "gfsh create data-source".
Note: implementors of this interface must also implement a zero-arg constructor.
-
Method Summary
Modifier and TypeMethodDescriptioncreateDataSource(Properties poolProperties, Properties dataSourceProperties) Create and return a data source configured with the given properties.
-
Method Details
-
createDataSource
Create and return a data source configured with the given properties.If you desire to have the data source release its resources when the cache is closed or the jndi-binding is removed, then also implement
AutoCloseable.- Parameters:
poolProperties- properties to use to initialize the pool part of the data source The poolProperties names can be any of the following:
connection-url, user-name, password, jdbc-driver-class, max-pool-size, init-pool-size, idle-timeout-seconds, login-timeout-seconds, or blocking-timeout-seconds.dataSourceProperties- properties to use to initialize the data source the pool will use to create connections- Returns:
- the created data source
-