public abstract class StorageAdapter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StorageAdapter.Parent
Implemented by a storage user, a cache or aggregator
|
Constructor and Description |
---|
StorageAdapter() |
Modifier and Type | Method and Description |
---|---|
protected static Throwable |
buildThrowable(String txt,
Throwable ex) |
abstract Future<Void> |
cancelTimerJobs()
Cancel all schedules timer jobs in the storage.
|
abstract boolean |
checkStorageStillDisconnectedForClear() |
abstract void |
clear() |
abstract Future<Void> |
clearAndReconnect()
Starts the parallel clearing process, returns immediately
|
abstract void |
disable(Throwable t) |
abstract void |
disconnectStorageForClear() |
abstract void |
evict(Entry e) |
abstract void |
expire(Entry e) |
abstract void |
flush() |
abstract StorageEntry |
get(Object key) |
abstract int |
getAlert()
0 means no alert, 1 orange, 2, red alert
|
abstract long |
getTotalEntryCount()
Return the total number of entries within the heap and
the storage.
|
abstract Iterator<Entry> |
iterateAll() |
abstract void |
open() |
abstract void |
purge() |
abstract void |
put(Entry e,
long _nextRefreshTime) |
abstract boolean |
remove(Object key) |
static void |
rethrow(String txt,
Throwable ex) |
abstract Future<Void> |
shutdown() |
public abstract void open()
public abstract Future<Void> cancelTimerJobs()
public abstract void flush()
public abstract void purge()
public abstract void clear()
public abstract boolean checkStorageStillDisconnectedForClear()
public abstract void disconnectStorageForClear()
public abstract Future<Void> clearAndReconnect()
public abstract void put(Entry e, long _nextRefreshTime)
_nextRefreshTime
- value expiry time in millis, 0: expire immediately, Long.MAX_VALUE
: no expirypublic abstract StorageEntry get(Object key)
public abstract boolean remove(Object key)
public abstract void evict(Entry e)
public abstract void expire(Entry e)
public abstract long getTotalEntryCount()
public abstract int getAlert()
public abstract void disable(Throwable t)
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.