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, 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 failspublic void initialize()
initialize in interface AuxiliaryCacheFactoryinitialize in class JDBCDiskCacheFactoryprotected void setupDatabase(JDBCDiskCacheAttributes attributes) throws SQLException
attributes - SQLExceptionprotected void setupTable(Connection cConn, String tableName) throws SQLException
cConn - tableName - SQLExceptionCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.