| Modifier and Type | Method and Description |
|---|---|
void |
Cache.cleanUp()
Removes expired and stale entries.
|
void |
Cache.delete(K key)
Manually remove an entry from the cache.
|
void |
Cache.expunge()
Cleanup the cache.
|
MetaData |
Cache.getMetaData(K key)
Retrieve the
MetaData of a cached entry if it is available. |
<T extends V> |
Cache.getWithErrors(K key)
Retrieve an entry from the cache if it is available.
|
<T extends V> |
Cache.putWithErrors(K key,
T data)
Store an entry in the cache with the default time to live.
|
<T extends V> |
CustomTtlCache.putWithErrors(K key,
T data,
long timeToLive)
Store an entry in the cache with a specific time to live.
|
<T extends V> |
CustomTtlCache.putWithErrors(K key,
T 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 <T extends V> |
AbstractMapBackedCache.doGet(K key,
M metaData)
Performs retrieval of the data belonging to the metadata.
|
protected <T extends V> |
AbstractMapBackedCustomTtlCache.doPut(K key,
T data) |
protected abstract <T extends V> |
AbstractMapBackedCache.doPut(K key,
T data)
Performs storage of the given data and adds new metadata to the map.
|
protected abstract <T extends V> |
AbstractMapBackedCustomTtlCache.doPut(K key,
T data,
long timeToLive,
long defaultMaxIdleTime)
Performs storage of the given data and adds new metadata to the map.
|
void |
AbstractMapBackedCache.expunge() |
protected void |
AbstractMapBackedCache.expunge(Collection<Map.Entry<K,M>> expungeEntriesMetaData)
Performs the actual expunging of entries with the given metadata.
|
MetaData |
AbstractMapBackedCache.getMetaData(K key) |
<T extends V> |
AbstractMapBackedCache.getWithErrors(K key) |
<T extends V> |
AbstractMapBackedCache.putWithErrors(K key,
T data) |
<T extends V> |
AbstractMapBackedCustomTtlCache.putWithErrors(K key,
T data,
long timeToLive) |
<T extends V> |
AbstractMapBackedCustomTtlCache.putWithErrors(K key,
T 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 void |
FileCache.initialize() |
| Constructor and Description |
|---|
FileCache(String name,
long defaultTimeToLive,
long defaultMaxIdleTime,
int maxSize,
int recycleSize,
File baseDir,
int directoryDepth) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
ByteArrayIndexedDiskCache.dataFromBytes(byte[] data) |
<T extends Serializable> |
SerializableIndexedDiskCache.dataFromBytes(byte[] dataBytes) |
protected abstract <T extends V> |
AbstractIndexedDiskCache.dataFromBytes(byte[] data) |
byte[] |
ByteArrayIndexedDiskCache.dataToBytes(byte[] data) |
<T extends Serializable> |
SerializableIndexedDiskCache.dataToBytes(T data) |
protected abstract <T extends V> |
AbstractIndexedDiskCache.dataToBytes(T data) |
protected void |
AbstractIndexedDiskCache.doDelete(K key,
BlockMetaData metaData) |
protected void |
BufferedSerializableIndexedDiskCache.doDelete(Serializable key,
BlockMetaData metaData) |
protected <T extends V> |
AbstractIndexedDiskCache.doGet(K key,
BlockMetaData metaData) |
protected <T extends Serializable> |
BufferedSerializableIndexedDiskCache.doGet(Serializable key,
BlockMetaData metaData) |
protected <T extends V> |
AbstractIndexedDiskCache.doPut(K key,
T data,
long timeToLive,
long maxIdleTime) |
protected <T extends Serializable> |
BufferedSerializableIndexedDiskCache.doPut(Serializable key,
T data,
long timeToLive,
long maxIdleTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
NoopCache.cleanUp() |
void |
NoopCache.delete(K key) |
protected void |
MemoryCache.doDelete(K key,
SimpleMetaData metaData) |
protected <T extends V> |
MemoryCache.doGet(K key,
SimpleMetaData metaData) |
protected <T extends V> |
MemoryCache.doPut(K key,
T data,
long timeToLive,
long maxIdleTime) |
MetaData |
NoopCache.getMetaData(K key) |
<T extends V> |
NoopCache.getWithErrors(K key) |
<T extends V> |
NoopCache.putWithErrors(K key,
T data) |
<T extends V> |
NoopCache.putWithErrors(K key,
T data,
long timeToLive) |
<T extends V> |
NoopCache.putWithErrors(K key,
T 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 © 2014 dontdrinkandroot. All rights reserved.