public class ByteArrayIndexedDiskCache extends AbstractIndexedDiskCache<Serializable,byte[]>
dataFile, dataFileLock, indexFile, indexFileLock, lockFile, queueSizeWarningLimitUNLIMITED_IDLE_TIME| Constructor and Description |
|---|
ByteArrayIndexedDiskCache(String name,
long defaultTimeToLive,
int maxSize,
int recycleSize,
File baseDir) |
ByteArrayIndexedDiskCache(String name,
long defaultTimeToLive,
long defaultMaxIdleTime,
int maxSize,
int recycleSize,
File baseDir) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
assertAllocatedConsistency() |
byte[] |
dataFromBytes(byte[] data) |
byte[] |
dataToBytes(byte[] data) |
int |
getDataFileNumAllocatedBlocks() |
int |
getMetaFileNumAllocatedBlocks() |
buildIndex, close, doDelete, doGet, doPut, flush, getWriteQueueLength, isWriterThreadAlive, setQueueSizeWarningLimitdoPut, put, put, putWithErrors, putWithErrorscleanUp, delete, delete, expunge, expunge, get, getCleanUpInterval, getComparator, getEntriesMetaData, getEntry, getMaxSize, getMetaData, getRecycleSize, getStatistics, getWithErrors, put, putEntry, putWithErrors, setCleanUpInterval, setMaxSize, setRecycleSize, triggerExpungegetCleanUpLogger, getDefaultMaxIdleTime, getDefaultTtl, getLogger, getName, setDefaultMaxIdleTime, setDefaultTtlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanUp, delete, expunge, get, getDefaultMaxIdleTime, getDefaultTtl, getMetaData, getName, getStatistics, getWithErrors, put, putWithErrors, setDefaultTtlpublic ByteArrayIndexedDiskCache(String name, long defaultTimeToLive, int maxSize, int recycleSize, File baseDir) throws IOException
IOExceptionpublic ByteArrayIndexedDiskCache(String name, long defaultTimeToLive, long defaultMaxIdleTime, int maxSize, int recycleSize, File baseDir) throws IOException
IOExceptionpublic byte[] dataToBytes(byte[] data)
throws CacheException
dataToBytes in class AbstractIndexedDiskCache<Serializable,byte[]>CacheExceptionpublic byte[] dataFromBytes(byte[] data)
throws CacheException
dataFromBytes in class AbstractIndexedDiskCache<Serializable,byte[]>CacheExceptionpublic int getMetaFileNumAllocatedBlocks()
public int getDataFileNumAllocatedBlocks()
public boolean assertAllocatedConsistency()
Copyright © 2014 dontdrinkandroot. All rights reserved.