public class MySQLDiskCacheFactory extends JDBCDiskCacheFactory
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,
JDBCDiskCachePoolAccess poolAccess)
For each time in the optimization schedule, this calls schedule Optimization.
|
createShrinkerWhenNeeded, dispose, getScheduledExecutorService, getTableState, initialize
getName, setName
public <K,V> MySQLDiskCache<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 scheduleOptimizations(MySQLDiskCacheAttributes attributes, TableState tableState, JDBCDiskCachePoolAccess poolAccess)
attributes
- configuration properties.tableState
- for noting optimization in progress, etc.poolAccess
- access to the poolprotected void scheduleOptimization(Date startTime, MySQLTableOptimizer optimizer)
startTime
- -- HH:MM:SS formatoptimizer
- Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.