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, setScheduledExecutorService
getName, setName
public HSQLDiskCacheFactory()
public <K,V> JDBCDiskCache<K,V> createCache(AuxiliaryCacheAttributes rawAttr, ICompositeCacheManager compositeCacheManager, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer) throws SQLException
createCache
in interface AuxiliaryCacheFactory
createCache
in class JDBCDiskCacheFactory
rawAttr
- 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 configurationSQLException
protected void setupTable(Connection cConn, String tableName) throws SQLException
cConn
- tableName
- SQLException
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.