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.
|
void |
initialize()
Initialize this factory
|
protected void |
setupDatabase(JDBCDiskCacheAttributes attributes)
Creates the database if it doesn't exist, registers the driver class, etc.
|
protected void |
setupTable(Connection cConn,
String tableName)
SETUP TABLE FOR CACHE
|
createShrinkerWhenNeeded, dispose, getDataSourceFactory, getScheduledExecutorService, getTableState, 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 failspublic void initialize()
initialize
in interface AuxiliaryCacheFactory
initialize
in class JDBCDiskCacheFactory
protected void setupDatabase(JDBCDiskCacheAttributes attributes) throws SQLException
attributes
- SQLException
protected void setupTable(Connection cConn, String tableName) throws SQLException
cConn
- tableName
- SQLException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.