public class HSQLDiskCacheFactory extends JDBCDiskCacheFactory
ATTRIBUTE_PREFIX, POOL_CONFIGURATION_PREFIX, scheduler| Constructor and Description |
|---|
HSQLDiskCacheFactory() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> JDBCDiskCache<K,V> |
createCache(AuxiliaryCacheAttributes rawAttr,
ICompositeCacheManager compositeCacheManager,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
This factory method should create an instance of the hsqlcache.
|
protected void |
setupDatabase(DataSource ds,
JDBCDiskCacheAttributes attributes)
Creates the table if it doesn't exist
|
protected void |
setupTable(Connection cConn,
String tableName)
SETUP TABLE FOR CACHE
|
createShrinkerWhenNeeded, dispose, getDataSourceFactory, getScheduledExecutorService, getTableState, initialize, setScheduledExecutorServicegetName, setNamepublic <K,V> JDBCDiskCache<K,V> createCache(AuxiliaryCacheAttributes rawAttr, ICompositeCacheManager compositeCacheManager, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer) throws SQLException
createCache in interface AuxiliaryCacheFactorycreateCache in class JDBCDiskCacheFactoryrawAttr - compositeCacheManager - cacheEventLogger - elementSerializer - SQLException - if the creation of the cache instance failsprotected void setupDatabase(DataSource ds, JDBCDiskCacheAttributes attributes) throws SQLException
ds - Data Sourceattributes - Cache region configurationSQLExceptionprotected void setupTable(Connection cConn, String tableName) throws SQLException
cConn - tableName - SQLExceptionCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.