A B C D E F G H I K L M N O P Q R S T U V W

## A

AbstractCache<K,V> - Class in net.dontdrinkandroot.cache.impl
AbstractCache(String, long) - Constructor for class net.dontdrinkandroot.cache.impl.AbstractCache
AbstractCache(String, long, long) - Constructor for class net.dontdrinkandroot.cache.impl.AbstractCache
AbstractIndexedDiskCache<K extends Serializable,V extends Serializable> - Class in net.dontdrinkandroot.cache.impl.disk.indexed
AbstractIndexedDiskCache(String, long, int, int, File) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
AbstractIndexedDiskCache(String, long, long, int, int, File) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
AbstractMapBackedCache<K,V,M extends MetaData> - Class in net.dontdrinkandroot.cache.impl
AbstractMapBackedCache(String, long, int, int) - Constructor for class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
  Construct a new `AbstractMapBackedCache`.
AbstractMapBackedCache(String, long, long, int, int) - Constructor for class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
  Construct a new AbstractCache.
AbstractMapBackedCustomTtlCache<K,V,M extends MetaData> - Class in net.dontdrinkandroot.cache.impl
AbstractMapBackedCustomTtlCache(String, long, int, int) - Constructor for class net.dontdrinkandroot.cache.impl.AbstractMapBackedCustomTtlCache
  Construct a new AbstractCustomTtlCache.
AbstractMapBackedCustomTtlCache(String, long, long, int, int) - Constructor for class net.dontdrinkandroot.cache.impl.AbstractMapBackedCustomTtlCache
  Construct a new AbstractCustomTtlCache.
allocateSpace(DataBlock) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
AllocationException - Exception in net.dontdrinkandroot.cache.impl.disk.indexed.storage
  Exception that denotes that the allocation of a block failed.
AllocationException(String) - Constructor for exception net.dontdrinkandroot.cache.impl.disk.indexed.storage.AllocationException
assertAllocatedConsistency() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.ByteArrayIndexedDiskCache

## B

BlockMetaData - Class in net.dontdrinkandroot.cache.metadata.impl
BlockMetaData(IndexData, SimpleMetaData) - Constructor for class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
BlockMetaData(SimpleMetaData) - Constructor for class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
blockNum - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
BufferedRecyclingCache<K,V> - Interface in net.dontdrinkandroot.cache
  A Buffered Cache that has a recycling ExpungeStrategy for both persistent storage and buffer.
BufferedSerializableIndexedDiskCache - Class in net.dontdrinkandroot.cache.impl.disk.indexed
  A `SerializableIndexedDiskCache` that buffers entries in memory on successful disk put and get operations.
BufferedSerializableIndexedDiskCache(String, long, int, int, File, int) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
BufferedSerializableIndexedDiskCache(String, long, long, int, int, File, int) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
buildIndex() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
ByteArrayIndexedDiskCache - Class in net.dontdrinkandroot.cache.impl.disk.indexed
ByteArrayIndexedDiskCache(String, long, int, int, File) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.ByteArrayIndexedDiskCache
ByteArrayIndexedDiskCache(String, long, long, int, int, File) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.ByteArrayIndexedDiskCache

## C

Cache<K,V> - Interface in net.dontdrinkandroot.cache
  A cache is a component that transparently stores data so that future requests for that data can be served faster.
CacheException - Exception in net.dontdrinkandroot.cache
  Exception that denotes that something went wrong while accessing the cache (while storing, retrieving or constructing).
CacheException() - Constructor for exception net.dontdrinkandroot.cache.CacheException
CacheException(String) - Constructor for exception net.dontdrinkandroot.cache.CacheException
CacheException(Throwable) - Constructor for exception net.dontdrinkandroot.cache.CacheException
CacheException(String, Throwable) - Constructor for exception net.dontdrinkandroot.cache.CacheException
CacheStatistics - Interface in net.dontdrinkandroot.cache.statistics
checkConsistency() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
CheckSumNotMatchingException - Exception in net.dontdrinkandroot.cache.metadata.impl
  Exception that denotes that the checksum was not matching the data.
CheckSumNotMatchingException() - Constructor for exception net.dontdrinkandroot.cache.metadata.impl.CheckSumNotMatchingException
cleanDirectory(File) - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
cleanUp() - Method in interface net.dontdrinkandroot.cache.Cache
  Removes expired and stale entries.
cleanUp() - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
cleanUp() - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
clone(T) - Static method in class net.dontdrinkandroot.cache.utils.Serializer
  Fast cloning as described here.
close() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
  Closes the cache.
close() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
  Closes the underlying random access file.
close() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile
  Closes the underlying random access file.
closeQuietly(Closeable) - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
compare(Map.Entry<K, M>, Map.Entry<K, M>) - Method in class net.dontdrinkandroot.cache.metadata.comparator.impl.LfuComparator
compare(Map.Entry<K, M>, Map.Entry<K, M>) - Method in class net.dontdrinkandroot.cache.metadata.comparator.impl.LruComparator
compare(T, T) - Static method in class net.dontdrinkandroot.cache.utils.ObjectUtils
compare(T, T, boolean) - Static method in class net.dontdrinkandroot.cache.utils.ObjectUtils
compareTo(DataBlock) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock
copyData(T) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
  Creates a copy of the given data.
copyData(T) - Method in class net.dontdrinkandroot.cache.impl.memory.MemoryCache
copyFile(File, File) - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
copyFile(File, File, boolean) - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
createDirStructure(File, int) - Method in class net.dontdrinkandroot.cache.impl.disk.file.FileCache
  Recursively creates directories 0x0 - 0xF until the desired depth is reached.
CustomTtlCache<K,V> - Interface in net.dontdrinkandroot.cache
  A `Cache` that permits storing entries with an individual time to live and an individual idle time.

## D

DataBlock - Class in net.dontdrinkandroot.cache.impl.disk.indexed.storage
DataBlock(long, long) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock
dataFile - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
DataFile - Class in net.dontdrinkandroot.cache.impl.disk.indexed.storage
DataFile(File) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
dataFileLock - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
dataFromBytes(byte[]) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
dataFromBytes(byte[]) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.ByteArrayIndexedDiskCache
dataFromBytes(byte[]) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.SerializableIndexedDiskCache
dataMap - Variable in class net.dontdrinkandroot.cache.impl.memory.MemoryCache
dataToBytes(T) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
dataToBytes(byte[]) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.ByteArrayIndexedDiskCache
dataToBytes(T) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.SerializableIndexedDiskCache
days(int) - Static method in class net.dontdrinkandroot.cache.utils.Duration
decay() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
decay() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
decay() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Decreases the hitcount for use with LRU based expunge strategies.
DECAY_FACTOR - Static variable in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
decodeHex(char[]) - Static method in class net.dontdrinkandroot.cache.utils.Md5
delete(K) - Method in interface net.dontdrinkandroot.cache.Cache
  Manually remove an entry from the cache.
delete(K) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
delete(K, M) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
delete(DataBlock, boolean) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
delete(IndexData) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile
  Deletes the block of the given metaData.
delete(int) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile
  Deletes the given block.
delete(K) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
deleteDirectory(File) - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
deserialize(byte[]) - Static method in class net.dontdrinkandroot.cache.utils.Serializer
deserialize(InputStream) - Static method in class net.dontdrinkandroot.cache.utils.Serializer
doDelete(K, M) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
  Performs deletion of the data belonging to the metadata.
doDelete(Md5, SimpleMetaData) - Method in class net.dontdrinkandroot.cache.impl.disk.file.FileCache
doDelete(K, BlockMetaData) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
doDelete(Serializable, BlockMetaData) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
doDelete(K, SimpleMetaData) - Method in class net.dontdrinkandroot.cache.impl.memory.MemoryCache
doGet(K, M) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
  Performs retrieval of the data belonging to the metadata.
doGet(Md5, SimpleMetaData) - Method in class net.dontdrinkandroot.cache.impl.disk.file.FileCache
doGet(K, BlockMetaData) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
doGet(Serializable, BlockMetaData) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
doGet(K, SimpleMetaData) - Method in class net.dontdrinkandroot.cache.impl.memory.MemoryCache
doPut(K, T) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
  Performs storage of the given data and adds new metadata to the map.
doPut(K, T) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCustomTtlCache
doPut(K, T, long, long) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCustomTtlCache
  Performs storage of the given data and adds new metadata to the map.
doPut(Md5, File) - Method in class net.dontdrinkandroot.cache.impl.disk.file.FileCache
doPut(K, T, long, long) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
doPut(Serializable, T, long, long) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
doPut(K, T, long, long) - Method in class net.dontdrinkandroot.cache.impl.memory.MemoryCache
Duration - Class in net.dontdrinkandroot.cache.utils
Duration() - Constructor for class net.dontdrinkandroot.cache.utils.Duration

## E

encodeHex(byte[]) - Static method in class net.dontdrinkandroot.cache.utils.Md5
equals(Object) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock
equals(Object) - Method in class net.dontdrinkandroot.cache.utils.Md5
expunge() - Method in interface net.dontdrinkandroot.cache.Cache
  Cleanup the cache.
expunge() - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
expunge(Collection<Map.Entry<K, M>>) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
  Performs the actual expunging of entries with the given metadata.
expunge() - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache

## F

file - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
FileCache - Class in net.dontdrinkandroot.cache.impl.disk.file
FileCache(String, long, long, int, int, File, int) - Constructor for class net.dontdrinkandroot.cache.impl.disk.file.FileCache
FileUtils - Class in net.dontdrinkandroot.cache.utils
  Required methods from Apache Commons IO FileUtils.
FileUtils() - Constructor for class net.dontdrinkandroot.cache.utils.FileUtils
flush() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
  Flushes the writer thread.
forceDelete(File) - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
fromMd5Hex(String) - Static method in class net.dontdrinkandroot.cache.utils.Md5

## G

get(K) - Method in interface net.dontdrinkandroot.cache.Cache
  Retrieve an entry from the cache if it is available.
get(K) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
get(K) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
getBaseDir() - Method in class net.dontdrinkandroot.cache.impl.disk.file.FileCache
getBlockNum() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
getBufferSize() - Method in interface net.dontdrinkandroot.cache.BufferedRecyclingCache
getBufferSize() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
getBufferStatistics() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
  Get the cache statistics of the buffer.
getBytes() - Method in class net.dontdrinkandroot.cache.utils.Md5
getCacheHits() - Method in interface net.dontdrinkandroot.cache.statistics.CacheStatistics
  Get the total number of cache hits.
getCacheHits() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
getCacheMisses() - Method in interface net.dontdrinkandroot.cache.statistics.CacheStatistics
  Get the total number of cache misses.
getCacheMisses() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
getCacheMissesExpired() - Method in interface net.dontdrinkandroot.cache.statistics.CacheStatistics
  Get the number of cache misses where the entry was expired.
getCacheMissesExpired() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
getCacheMissesNotFound() - Method in interface net.dontdrinkandroot.cache.statistics.CacheStatistics
  Get the number of cache misses where the entry was not found.
getCacheMissesNotFound() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
getCleanUpInterval() - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
getCleanUpLogger() - Method in class net.dontdrinkandroot.cache.impl.AbstractCache
getComparator() - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
getCreated() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.KeyedMetaData
getCreated() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
getCreated() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
getCreated() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Get the timestamp when the entry was created.
getCurrentSize() - Method in interface net.dontdrinkandroot.cache.statistics.CacheStatistics
  Get the current size (the number of entries) in the cache.
getCurrentSize() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
getDataFileNumAllocatedBlocks() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.ByteArrayIndexedDiskCache
getDataFileNumAllocatedBlocks() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.SerializableIndexedDiskCache
getDefaultMaxIdleTime() - Method in interface net.dontdrinkandroot.cache.Cache
  Get the default max idle time for cache entries.
getDefaultMaxIdleTime() - Method in class net.dontdrinkandroot.cache.impl.AbstractCache
getDefaultMaxIdleTime() - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
getDefaultTtl() - Method in interface net.dontdrinkandroot.cache.Cache
  Retrieve the default time to live for cache entries.
getDefaultTtl() - Method in class net.dontdrinkandroot.cache.impl.AbstractCache
getDefaultTtl() - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
getEndPosition() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock
getEntriesMetaData() - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
  Returns a copy of the List of all metadata entries.
getEntry(K) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
getExpiry() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
getExpiry() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
getExpiry() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Get the timestamp when the entry expires.
getFileName(Md5) - Method in class net.dontdrinkandroot.cache.impl.disk.file.FileCache
getFileName() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
getGetCount() - Method in interface net.dontdrinkandroot.cache.statistics.CacheStatistics
  Get the total get count.
getGetCount() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
getHex() - Method in class net.dontdrinkandroot.cache.utils.Md5
getHitCount() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
getHitCount() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
getHitCount() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Get the number of hits.
getHitRate() - Method in interface net.dontdrinkandroot.cache.statistics.CacheStatistics
  Get the current hit rate, this is a value [0,1] which is the percentage of hits on all get requests.
getHitRate() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
getIndexData() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
getIndexFileNumAllocatedBlocks() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.SerializableIndexedDiskCache
getKey() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.KeyedMetaData
getKeyMetaBlock() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
getLastAccess() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
getLastAccess() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
getLastAccess() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Get the timestamp when the entry was last accessed.
getLength() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock
getLogger() - Method in class net.dontdrinkandroot.cache.impl.AbstractCache
getMaxIdleTime() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.KeyedMetaData
getMaxIdleTime() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
getMaxIdleTime() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
getMaxIdleTime() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Get the maximum time that the entry may idle (not being accessed) before being evicted (in milliseconds).
getMaxSize() - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
getMaxSize() - Method in interface net.dontdrinkandroot.cache.RecyclingCache
getMetaData(K) - Method in interface net.dontdrinkandroot.cache.Cache
  Retrieve the `MetaData` of a cached entry if it is available.
getMetaData(K) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
getMetaData() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.KeyedMetaData
getMetaData(K) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
getMetaData() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
getMetaFileNumAllocatedBlocks() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.ByteArrayIndexedDiskCache
getName() - Method in interface net.dontdrinkandroot.cache.Cache
  Get the name of this cache.
getName() - Method in class net.dontdrinkandroot.cache.impl.AbstractCache
getName() - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
getNumAllocated() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
getNumAllocated() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile
  Gets the number of allocated blocks.
getPutCount() - Method in interface net.dontdrinkandroot.cache.statistics.CacheStatistics
  Get the total put count.
getPutCount() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
getRecycleSize() - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
getRecycleSize() - Method in interface net.dontdrinkandroot.cache.RecyclingCache
getStartPosition() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock
getStatistics() - Method in interface net.dontdrinkandroot.cache.Cache
  Get statistics of the cache like hitrate, or size.
getStatistics() - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
getStatistics() - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
getTempDirectory() - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
getTempDirectoryPath() - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
getTimeToLive() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
getTimeToLive() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
getTimeToLive() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Gets the time to live of this entry (in milliseconds).
getValueBlock() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
getWithErrors(K) - Method in interface net.dontdrinkandroot.cache.Cache
  Retrieve an entry from the cache if it is available.
getWithErrors(K) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
getWithErrors(K) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
getWriteQueueLength() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
  Get the length of the writer thread queue.
GOLDEN_RATIO - Static variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile

## H

hashCode() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock
hashCode() - Method in class net.dontdrinkandroot.cache.utils.Md5
hours(int) - Static method in class net.dontdrinkandroot.cache.utils.Duration
HOURS_PER_DAY - Static variable in class net.dontdrinkandroot.cache.utils.Duration

## I

increaseCacheHits() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
increaseCacheMissesExpired() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
increaseCacheMissesNotFound() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
increaseGetCount() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
increaseHitCount() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
increasePutCount() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
IndexData - Class in net.dontdrinkandroot.cache.impl.disk.indexed.storage
IndexData(int, DataBlock, DataBlock) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
IndexData(DataBlock, DataBlock) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
indexFile - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
IndexFile - Class in net.dontdrinkandroot.cache.impl.disk.indexed.storage
IndexFile(File) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile
indexFileLock - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
initialize() - Method in class net.dontdrinkandroot.cache.impl.disk.file.FileCache
initialize() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile
isCopyOnRead() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
isCopyOnRead() - Method in class net.dontdrinkandroot.cache.impl.memory.MemoryCache
isCopyOnWrite() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
isCopyOnWrite() - Method in class net.dontdrinkandroot.cache.impl.memory.MemoryCache
isExpired() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
isExpired() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
isExpired() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Check if the entry is expired.
isStale() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
isStale() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
isStale() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Check if the entry has not been accessed within the idle period.
isSymlink(File) - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
isSystemWindows() - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
isWriterThreadAlive() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
  Checks if the writer thread is alive.

## K

KeyedMetaData<K extends Serializable> - Class in net.dontdrinkandroot.cache.impl.disk.indexed.storage
KeyedMetaData(K, MetaData) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.storage.KeyedMetaData
keyMetaBlock - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData

## L

lastBlock - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
  Pointer to the last used block.
LENGTH - Static variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock
length() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
  Returns the length of the underlying random access file.
LENGTH - Static variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
length() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile
  Returns the length of the underlying random access file.
LfuComparator<K,M extends MetaData> - Class in net.dontdrinkandroot.cache.metadata.comparator.impl
  Sorts items by ascending count, if the count is equal the older item is picked.
LfuComparator() - Constructor for class net.dontdrinkandroot.cache.metadata.comparator.impl.LfuComparator
listFilesRecursive(File) - Static method in class net.dontdrinkandroot.cache.utils.FileUtils
lockFile - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
logger - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
LruComparator<K,M extends MetaData> - Class in net.dontdrinkandroot.cache.metadata.comparator.impl
  Sorts items by ascending access time (older first), if the access time is equal the one with the lower count is picked.
LruComparator() - Constructor for class net.dontdrinkandroot.cache.metadata.comparator.impl.LruComparator

## M

Md5 - Class in net.dontdrinkandroot.cache.utils
Md5(String) - Constructor for class net.dontdrinkandroot.cache.utils.Md5
Md5(byte[]) - Constructor for class net.dontdrinkandroot.cache.utils.Md5
MD5_PATTERN - Static variable in class net.dontdrinkandroot.cache.impl.disk.file.FileCache
Md5Exception - Exception in net.dontdrinkandroot.cache.utils
Md5Exception(Throwable) - Constructor for exception net.dontdrinkandroot.cache.utils.Md5Exception
Md5Exception(String) - Constructor for exception net.dontdrinkandroot.cache.utils.Md5Exception
MemoryCache<K,V> - Class in net.dontdrinkandroot.cache.impl.memory
MemoryCache(String, long, int, int) - Constructor for class net.dontdrinkandroot.cache.impl.memory.MemoryCache
MemoryCache(String, long, long, int, int) - Constructor for class net.dontdrinkandroot.cache.impl.memory.MemoryCache
MetaData - Interface in net.dontdrinkandroot.cache.metadata
MetaDataComparator<K,M extends MetaData> - Interface in net.dontdrinkandroot.cache.metadata.comparator
MILLIS_PER_DAY - Static variable in class net.dontdrinkandroot.cache.utils.Duration
MILLIS_PER_HOUR - Static variable in class net.dontdrinkandroot.cache.utils.Duration
MILLIS_PER_MINUTE - Static variable in class net.dontdrinkandroot.cache.utils.Duration
MILLIS_PER_SECOND - Static variable in class net.dontdrinkandroot.cache.utils.Duration
minutes(int) - Static method in class net.dontdrinkandroot.cache.utils.Duration
MINUTES_PER_HOUR - Static variable in class net.dontdrinkandroot.cache.utils.Duration

## N

net.dontdrinkandroot.cache - package net.dontdrinkandroot.cache
net.dontdrinkandroot.cache.impl - package net.dontdrinkandroot.cache.impl
net.dontdrinkandroot.cache.impl.disk.file - package net.dontdrinkandroot.cache.impl.disk.file
net.dontdrinkandroot.cache.impl.disk.indexed - package net.dontdrinkandroot.cache.impl.disk.indexed
net.dontdrinkandroot.cache.impl.disk.indexed.storage - package net.dontdrinkandroot.cache.impl.disk.indexed.storage
net.dontdrinkandroot.cache.impl.memory - package net.dontdrinkandroot.cache.impl.memory
net.dontdrinkandroot.cache.metadata - package net.dontdrinkandroot.cache.metadata
net.dontdrinkandroot.cache.metadata.comparator - package net.dontdrinkandroot.cache.metadata.comparator
net.dontdrinkandroot.cache.metadata.comparator.impl - package net.dontdrinkandroot.cache.metadata.comparator.impl
net.dontdrinkandroot.cache.metadata.impl - package net.dontdrinkandroot.cache.metadata.impl
net.dontdrinkandroot.cache.statistics - package net.dontdrinkandroot.cache.statistics
net.dontdrinkandroot.cache.statistics.impl - package net.dontdrinkandroot.cache.statistics.impl
net.dontdrinkandroot.cache.utils - package net.dontdrinkandroot.cache.utils
NoopCache<K,V> - Class in net.dontdrinkandroot.cache.impl.memory
  A serializable cache that does not actually perform any caching operation.
NoopCache(String) - Constructor for class net.dontdrinkandroot.cache.impl.memory.NoopCache

## O

ObjectUtils - Class in net.dontdrinkandroot.cache.utils
  Required Methods From Apache Commons Lang ObjectUtils.
ObjectUtils() - Constructor for class net.dontdrinkandroot.cache.utils.ObjectUtils
ONE_KB - Static variable in class net.dontdrinkandroot.cache.utils.FileUtils
ONE_MB - Static variable in class net.dontdrinkandroot.cache.utils.FileUtils
overlaps(DataBlock) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock

## P

put(K, T) - Method in interface net.dontdrinkandroot.cache.Cache
  Store an entry in the cache with the default time to live.
put(K, T, long) - Method in interface net.dontdrinkandroot.cache.CustomTtlCache
  Store an entry in the cache with a specific time to live.
put(K, T, long, long) - Method in interface net.dontdrinkandroot.cache.CustomTtlCache
  Store an entry in the cache with a specific time to live and max idle time.
put(K, T) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
put(K, T, long) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCustomTtlCache
put(K, T, long, long) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCustomTtlCache
put(K, T) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
put(K, T, long) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
put(K, T, long, long) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
putEntry(K, M) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
putWithErrors(K, T) - Method in interface net.dontdrinkandroot.cache.Cache
  Store an entry in the cache with the default time to live.
putWithErrors(K, T, long) - Method in interface net.dontdrinkandroot.cache.CustomTtlCache
  Store an entry in the cache with a specific time to live.
putWithErrors(K, T, long, long) - Method in interface net.dontdrinkandroot.cache.CustomTtlCache
  Store an entry in the cache with a specific time to live and max idle time.
putWithErrors(K, T) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
putWithErrors(K, T, long, long) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCustomTtlCache
putWithErrors(K, T, long) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCustomTtlCache
putWithErrors(K, T) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
putWithErrors(K, T, long) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
putWithErrors(K, T, long, long) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache

## Q

queueSizeWarningLimit - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache

## R

randomAccessFile - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
read(DataBlock) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
read(RandomAccessFile, int) - Static method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
RecyclingCache<K,V> - Interface in net.dontdrinkandroot.cache
  A Buffered Cache that uses a recycling ExpungeStrategy.
reset() - Method in interface net.dontdrinkandroot.cache.statistics.CacheStatistics
  Reset the statistics.
reset() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics

## S

seconds(int) - Static method in class net.dontdrinkandroot.cache.utils.Duration
SECONDS_PER_MINUTE - Static variable in class net.dontdrinkandroot.cache.utils.Duration
SerializableIndexedDiskCache - Class in net.dontdrinkandroot.cache.impl.disk.indexed
SerializableIndexedDiskCache(String, long, int, int, File) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.SerializableIndexedDiskCache
SerializableIndexedDiskCache(String, long, long, int, int, File) - Constructor for class net.dontdrinkandroot.cache.impl.disk.indexed.SerializableIndexedDiskCache
SerializationException - Exception in net.dontdrinkandroot.cache.utils
SerializationException(Throwable) - Constructor for exception net.dontdrinkandroot.cache.utils.SerializationException
serialize(Serializable) - Static method in class net.dontdrinkandroot.cache.utils.Serializer
serialize(Serializable, OutputStream) - Static method in class net.dontdrinkandroot.cache.utils.Serializer
Serializer - Class in net.dontdrinkandroot.cache.utils
  Required Methods from Apache Commons Lang SerializationUtils.
Serializer() - Constructor for class net.dontdrinkandroot.cache.utils.Serializer
setBlockNum(int) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
setBufferSize(int) - Method in interface net.dontdrinkandroot.cache.BufferedRecyclingCache
setBufferSize(int) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
setCacheHits(long) - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
setCacheMissesExpired(long) - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
setCacheMissesNotFound(long) - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
setCleanUpInterval(long) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
setCopyOnRead(boolean) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
  Sets if a successful get should return a copy of the cache entry, so when manipulating the object no changes are persisted in the buffer.
setCopyOnRead(boolean) - Method in class net.dontdrinkandroot.cache.impl.memory.MemoryCache
setCopyOnWrite(boolean) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.BufferedSerializableIndexedDiskCache
  Sets if a successful put should return a copy of the cache entry, so when manipulating the object no changes are persisted in the buffer.
setCopyOnWrite(boolean) - Method in class net.dontdrinkandroot.cache.impl.memory.MemoryCache
setCurrentSize(int) - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
setDefaultMaxIdleTime(long) - Method in class net.dontdrinkandroot.cache.impl.AbstractCache
setDefaultTtl(long) - Method in interface net.dontdrinkandroot.cache.Cache
  Sets the default time to live for cache entries.
setDefaultTtl(long) - Method in class net.dontdrinkandroot.cache.impl.AbstractCache
setDefaultTtl(long) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
setGetCount(long) - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
setIndexData(IndexData) - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
setMaxSize(int) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
setMaxSize(int) - Method in interface net.dontdrinkandroot.cache.RecyclingCache
setName(String) - Method in class net.dontdrinkandroot.cache.impl.memory.NoopCache
setPutCount(long) - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
setQueueSizeWarningLimit(int) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.AbstractIndexedDiskCache
  Set the limit when the writer thread is warning for an excess queue length.
setRecycleSize(int) - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache
setRecycleSize(int) - Method in interface net.dontdrinkandroot.cache.RecyclingCache
SimpleCacheStatistics - Class in net.dontdrinkandroot.cache.statistics.impl
SimpleCacheStatistics() - Constructor for class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
SimpleMetaData - Class in net.dontdrinkandroot.cache.metadata.impl
SimpleMetaData(long) - Constructor for class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
SimpleMetaData(long, long) - Constructor for class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
SimpleMetaData(long, long, long) - Constructor for class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData

## T

toString() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataBlock
toString() - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
toString() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
toString() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
toString() - Method in class net.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
triggerExpunge() - Method in class net.dontdrinkandroot.cache.impl.AbstractMapBackedCache

## U

UNLIMITED_IDLE_TIME - Static variable in interface net.dontdrinkandroot.cache.Cache
update() - Method in class net.dontdrinkandroot.cache.metadata.impl.BlockMetaData
update() - Method in class net.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
update() - Method in interface net.dontdrinkandroot.cache.metadata.MetaData
  Update the entry after a cache hit.
usedBlocks - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
  Ordered set of used blocks

## V

valueBlock - Variable in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData

## W

write(byte[]) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.DataFile
write(RandomAccessFile, int) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexData
write(IndexData) - Method in class net.dontdrinkandroot.cache.impl.disk.indexed.storage.IndexFile

A B C D E F G H I K L M N O P Q R S T U V W