public class MySQLDiskCacheFactory extends JDBCDiskCacheFactory
ATTRIBUTE_PREFIX, POOL_CONFIGURATION_PREFIX, scheduler| Constructor and Description |
|---|
MySQLDiskCacheFactory() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> MySQLDiskCache<K,V> |
createCache(AuxiliaryCacheAttributes rawAttr,
ICompositeCacheManager compositeCacheManager,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
This factory method should create an instance of the mysqlcache.
|
protected void |
scheduleOptimization(Date startTime,
MySQLTableOptimizer optimizer)
This takes in a single time and schedules the optimizer to be called at that time every day.
|
protected void |
scheduleOptimizations(MySQLDiskCacheAttributes attributes,
TableState tableState,
DataSource ds)
For each time in the optimization schedule, this calls schedule Optimization.
|
createShrinkerWhenNeeded, dispose, getDataSourceFactory, getScheduledExecutorService, getTableState, initialize, setScheduledExecutorServicegetName, setNamepublic <K,V> MySQLDiskCache<K,V> createCache(AuxiliaryCacheAttributes rawAttr, ICompositeCacheManager compositeCacheManager, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer) throws SQLException
createCache in interface AuxiliaryCacheFactorycreateCache in class JDBCDiskCacheFactoryrawAttr - specific cache configuration attributescompositeCacheManager - the global cache managercacheEventLogger - a specific logger for cache eventselementSerializer - a serializer for cache elementsSQLException - if the cache instance could not be createdprotected void scheduleOptimizations(MySQLDiskCacheAttributes attributes, TableState tableState, DataSource ds)
attributes - configuration properties.tableState - for noting optimization in progress, etc.ds - the DataSourceprotected void scheduleOptimization(Date startTime, MySQLTableOptimizer optimizer)
startTime - -- HH:MM:SS formatoptimizer - Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.