Gemfire JavaDocs
Package org.apache.geode.datasource
Interface PooledDataSourceFactory
-
- All Known Implementing Classes:
JdbcPooledDataSourceFactory
@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".Note: implementors of this interface must also implement a zero-arg constructor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.sql.DataSource
createDataSource(java.util.Properties poolProperties, java.util.Properties dataSourceProperties)
Create and return a data source configured with the given properties.
-
-
-
Method Detail
-
createDataSource
javax.sql.DataSource createDataSource(java.util.Properties poolProperties, java.util.Properties dataSourceProperties)
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
-
-