public abstract class JDBCDiskCacheManagerAbstractTemplate extends AbstractDiskCacheManager
Modifier and Type | Field and Description |
---|---|
protected static int |
clients
Incremented on getInstance, decremented on release.
|
protected static Map<String,TableState> |
tableStates
A map of TableState objects to table names.
|
Constructor and Description |
---|
JDBCDiskCacheManagerAbstractTemplate() |
Modifier and Type | Method and Description |
---|---|
protected abstract <K,V> JDBCDiskCache<K,V> |
createJDBCDiskCache(JDBCDiskCacheAttributes cattr,
TableState tableState)
Children must implement this method.
|
protected void |
createShrinkerWhenNeeded(JDBCDiskCacheAttributes cattr,
AuxiliaryCache<?,?> raf)
If UseDiskShrinker is true then we will create a shrinker daemon if necessary.
|
void |
freeCache(String name) |
<K,V> JDBCDiskCache<K,V> |
getCache(JDBCDiskCacheAttributes cattr)
Creates a JDBCDiskCache for the region if one doesn't exist, else it returns the pre-created
instance.
|
void |
release()
Disposes of all regions.
|
getCacheEventLogger, getElementSerializer, setCacheEventLogger, setElementSerializer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCache
protected static int clients
protected static Map<String,TableState> tableStates
public JDBCDiskCacheManagerAbstractTemplate()
protected abstract <K,V> JDBCDiskCache<K,V> createJDBCDiskCache(JDBCDiskCacheAttributes cattr, TableState tableState) throws SQLException
cattr
- tableState
- An object used by multiple processes to indicate state.SQLException
public <K,V> JDBCDiskCache<K,V> getCache(JDBCDiskCacheAttributes cattr)
cattr
- protected void createShrinkerWhenNeeded(JDBCDiskCacheAttributes cattr, AuxiliaryCache<?,?> raf)
cattr
- raf
- public void freeCache(String name)
name
- public void release()
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.