public class FlatFileCacheBacking extends AsynchronousFileCacheBacking
AsynchronousFileCacheBacking.AbstractCommand, AsynchronousFileCacheBacking.AsyncCommand, AsynchronousFileCacheBacking.AsynchronousFileCacheBackingCreator<T extends AsynchronousFileCacheBacking>, AsynchronousFileCacheBacking.ClearCommand, AsynchronousFileCacheBacking.InsertCommand, AsynchronousFileCacheBacking.KeyedCommand, AsynchronousFileCacheBacking.RemoveCommand, AsynchronousFileCacheBacking.UpdateIndexCommandAbstractIndexedFileCacheBacking.IndexEntrybytesMap, exposedBytes, exposedIndex, indexEMPTY_INDEX, EMPTY_KEYS, INDEX_FILEWEAVED_CLASS_CACHE_DIRlogger| Constructor and Description |
|---|
FlatFileCacheBacking(java.io.File cacheDir) |
| Modifier and Type | Method and Description |
|---|---|
static FlatFileCacheBacking |
createBacking(java.io.File cacheDir) |
protected java.util.Map<java.lang.String,byte[]> |
readClassBytes(java.util.Map<java.lang.String,AbstractIndexedFileCacheBacking.IndexEntry> indexMap,
java.io.File cacheDir) |
protected java.util.Map<java.lang.String,byte[]> |
readClassBytes(java.util.Map<java.lang.String,AbstractIndexedFileCacheBacking.IndexEntry> indexMap,
java.io.File[] files) |
protected void |
removeClassBytes(java.lang.String key)
|
protected AbstractIndexedFileCacheBacking.IndexEntry |
resolveIndexMapEntry(java.io.File cacheDir,
AbstractIndexedFileCacheBacking.IndexEntry ie) |
protected void |
writeClassBytes(java.lang.String key,
byte[] bytes) |
clear, createBacking, executeClearCommand, executeCommand, executeInsertCommand, executeRemoveCommand, executeUpdateIndexCommand, get, getBytesMap, getIndex, getIndexEntries, getIndexMap, postCacheCommand, put, remove, remove, toStringcreateIndexEntry, getIndexFile, getKeys, readIndex, readIndex, readIndex, writeIndex, writeIndex, writeIndex, writeIndex, writeIndexclose, close, delete, getCacheDirectorycrcpublic static final FlatFileCacheBacking createBacking(java.io.File cacheDir)
protected java.util.Map<java.lang.String,byte[]> readClassBytes(java.util.Map<java.lang.String,AbstractIndexedFileCacheBacking.IndexEntry> indexMap, java.io.File cacheDir)
readClassBytes in class AsynchronousFileCacheBackingprotected java.util.Map<java.lang.String,byte[]> readClassBytes(java.util.Map<java.lang.String,AbstractIndexedFileCacheBacking.IndexEntry> indexMap, java.io.File[] files)
protected AbstractIndexedFileCacheBacking.IndexEntry resolveIndexMapEntry(java.io.File cacheDir, AbstractIndexedFileCacheBacking.IndexEntry ie)
resolveIndexMapEntry in class AbstractIndexedFileCacheBackingprotected void writeClassBytes(java.lang.String key,
byte[] bytes)
throws java.lang.Exception
writeClassBytes in class AbstractFileCacheBackingjava.lang.Exceptionprotected void removeClassBytes(java.lang.String key)
throws java.lang.Exception
AsynchronousFileCacheBackingremoveClassBytes in class AsynchronousFileCacheBackingkey - The key representing the class whose bytes are to be removedjava.lang.Exception - if failed to remove class bytes