public class MySQLDiskCache extends JDBCDiskCache
Although the generic JDBC Disk Cache can be used for MySQL, the MySQL JDBC Disk Cache has additional features, such as table optimization that are particular to MySQL.
alive, cacheEventQueue, cacheName, purgatory, purgHitscacheEventLogger, keyMatcherCACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE| Constructor and Description |
|---|
MySQLDiskCache(MySQLDiskCacheAttributes attributes,
TableState tableState,
ICompositeCacheManager compositeCacheManager)
Delegates to the super and makes use of the MySQL specific parameters used for scheduled
optimization.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
constructLikeParameterFromPattern(java.lang.String pattern) |
protected int |
deleteExpired()
Removed the expired.
|
protected ICacheElement |
processGet(java.io.Serializable key)
This delegates to the generic JDBC disk cache.
|
protected java.util.Map |
processGetMatching(java.lang.String pattern)
This delegates to the generic JDBC disk cache.
|
protected void |
processUpdate(ICacheElement element)
This delegates to the generic JDBC disk cache.
|
doesElementExist, getAuxiliaryCacheAttributes, getDiskLocation, getElementSerializer, getGroupKeys, getJdbcDiskCacheAttributes, getPoolAccess, getSize, getStatistics, getTableName, getTableState, initializePoolAccess, processDispose, processRemove, processRemoveAll, reset, serialize, setElementSerializer, setJdbcDiskCacheAttributes, setPoolAccess, setTableState, toStringdispose, doDispose, doGet, doGetMatching, doRemove, doRemoveAll, doUpdate, get, getCacheName, getCacheType, getEventLoggingExtraInfo, getMatching, getStats, getStatus, processGetMultiple, remove, removeAll, updatedisposeWithEventLogging, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, removeAllWithEventLogging, removeWithEventLogging, updateWithEventLoggingcreateICacheEvent, createICacheEvent, getCacheEventLogger, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setKeyMatcherclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetCacheEventLoggergetMultiple, setKeyMatcherpublic MySQLDiskCache(MySQLDiskCacheAttributes attributes, TableState tableState, ICompositeCacheManager compositeCacheManager)
attributes - tableState - compositeCacheManager - protected ICacheElement processGet(java.io.Serializable key)
processGet in class JDBCDiskCachekey - Key to locate value for.AbstractDiskCache.doGet(java.io.Serializable)protected java.util.Map processGetMatching(java.lang.String pattern)
processGetMatching in class JDBCDiskCachepattern - used for like query.public java.lang.String constructLikeParameterFromPattern(java.lang.String pattern)
constructLikeParameterFromPattern in class JDBCDiskCachepattern - protected void processUpdate(ICacheElement element)
processUpdate in class JDBCDiskCacheelement - protected int deleteExpired()
If we are currently optimizing, then this method will balk and do nothing.
TODO consider blocking and trying again.
deleteExpired in class JDBCDiskCacheCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.