| Modifier and Type | Method and Description |
|---|---|
void |
Cache.cleanUp()
Cleanup the cache.
|
void |
Cache.delete(K key)
Manually remove an entry from the cache.
|
V |
Cache.get(K key)
Retrieve an entry from the cache if it is available.
|
MetaData |
Cache.getMetaData(K key)
Retrieve the
MetaData of a cached entry if it is available. |
V |
Cache.put(K key,
V data)
Store an entry in the cache with the default time to live.
|
V |
CustomTtlCache.put(K key,
V data,
long timeToLive)
Store an entry in the cache with a specific time to live.
|
V |
CustomTtlCache.put(K key,
V data,
long timeToLive,
long maxIdleTime)
Store an entry in the cache with a specific time to live and max idle time.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractMapBackedCache.cleanUp() |
void |
AbstractMapBackedCache.delete(K key) |
void |
AbstractMapBackedCache.delete(K key,
M metaData) |
protected abstract void |
AbstractMapBackedCache.doDelete(K key,
M metaData)
Performs deletion of the data belonging to the metadata.
|
protected abstract V |
AbstractMapBackedCache.doGet(K key,
M metaData)
Performs retrieval of the data belonging to the metadata.
|
protected abstract V |
AbstractMapBackedCache.doPut(K key,
V data)
Performs storage of the given data and adds new metadata to the map.
|
protected V |
AbstractMapBackedCustomTtlCache.doPut(K key,
V data) |
protected abstract V |
AbstractMapBackedCustomTtlCache.doPut(K key,
V data,
long timeToLive,
long defaultMaxIdleTime)
Performs storage of the given data and adds new metadata to the map.
|
protected void |
AbstractMapBackedCache.expunge(Collection<Map.Entry<K,M>> expungeEntriesMetaData)
Performs the actual expunging of entries with the given metadata.
|
V |
AbstractMapBackedCache.get(K key) |
MetaData |
AbstractMapBackedCache.getMetaData(K key) |
V |
AbstractMapBackedCache.put(K key,
V data) |
V |
AbstractMapBackedCustomTtlCache.put(K key,
V data,
long timeToLive) |
V |
AbstractMapBackedCustomTtlCache.put(K key,
V data,
long timeToLive,
long maxIdleTime) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
FileCache.doDelete(Md5 key,
SimpleMetaData metaData) |
protected File |
FileCache.doGet(Md5 key,
SimpleMetaData metaData) |
protected File |
FileCache.doPut(Md5 md5,
File data) |
protected Map<Md5,SimpleMetaData> |
FileCache.readInitialMap() |
| Constructor and Description |
|---|
FileCache(String name,
long defaultTimeToLive,
long defaultMaxIdleTime,
ExpungeStrategy expungeStrategy,
File baseDir,
int directoryDepth) |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
SerializableIndexedDiskCache.dataFromBytes(byte[] dataBytes) |
protected abstract V |
AbstractIndexedDiskCache.dataFromBytes(byte[] data) |
byte[] |
ByteArrayIndexedDiskCache.dataFromBytes(byte[] data) |
byte[] |
ByteArrayIndexedDiskCache.dataToBytes(byte[] data) |
byte[] |
SerializableIndexedDiskCache.dataToBytes(Serializable data) |
protected abstract byte[] |
AbstractIndexedDiskCache.dataToBytes(V data) |
protected void |
AbstractIndexedDiskCache.doDelete(K key,
BlockMetaData metaData) |
protected void |
BufferedSerializableIndexedDiskCache.doDelete(Serializable key,
BlockMetaData metaData) |
protected V |
AbstractIndexedDiskCache.doGet(K key,
BlockMetaData metaData) |
protected Serializable |
BufferedSerializableIndexedDiskCache.doGet(Serializable key,
BlockMetaData metaData) |
protected V |
AbstractIndexedDiskCache.doPut(K key,
V data,
long timeToLive,
long maxIdleTime) |
protected Serializable |
BufferedSerializableIndexedDiskCache.doPut(Serializable key,
Serializable data,
long timeToLive,
long maxIdleTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
NoopCache.delete(K key) |
protected void |
MemoryCache.doDelete(K key,
SimpleMetaData metaData) |
protected V |
MemoryCache.doGet(K key,
SimpleMetaData metaData) |
protected V |
MemoryCache.doPut(K key,
V data,
long timeToLive,
long maxIdleTime) |
V |
NoopCache.get(K key) |
MetaData |
NoopCache.getMetaData(K key) |
V |
NoopCache.put(K key,
V data) |
V |
NoopCache.put(K key,
V data,
long timeToLive) |
V |
NoopCache.put(K key,
V data,
long timeToLive,
long maxIdleTime) |
| Modifier and Type | Class and Description |
|---|---|
class |
CheckSumNotMatchingException
Exception that denotes that the checksum was not matching the data.
|
Copyright © 2013 dontdrinkandroot. All Rights Reserved.