public class FailureStorageAdapter extends StorageAdapter
| Constructor and Description |
|---|
FailureStorageAdapter(Throwable exception) |
| Modifier and Type | Method and Description |
|---|---|
Future<Void> |
cancelTimerJobs()
Cancel all schedules timer jobs in the storage.
|
boolean |
checkStorageStillDisconnectedForClear() |
Future<Void> |
clearAndReconnect()
Starts the parallel clearing process, returns immediatly
|
void |
disable(Throwable t) |
void |
disconnectStorageForClear() |
void |
evict(Entry e) |
void |
expire(Entry e)
TODO: Relly needed?
|
void |
flush() |
StorageEntry |
get(Object key) |
int |
getAlert()
0 means no alert, 1 orange, 2, red alert
|
int |
getTotalEntryCount()
Return the total number of entries within the heap and
the storage.
|
ClosableIterator<Entry> |
iterateAll() |
void |
open() |
void |
purge() |
void |
put(Entry e,
long _nextRefreshTime) |
boolean |
remove(Object key) |
Future<Void> |
shutdown() |
buildThrowable, rethrowpublic FailureStorageAdapter(Throwable exception)
public void open()
open in class StorageAdapterpublic void flush()
flush in class StorageAdapterpublic void purge()
purge in class StorageAdapterpublic boolean checkStorageStillDisconnectedForClear()
checkStorageStillDisconnectedForClear in class StorageAdapterpublic void disconnectStorageForClear()
disconnectStorageForClear in class StorageAdapterpublic Future<Void> clearAndReconnect()
StorageAdapterclearAndReconnect in class StorageAdapterpublic void put(Entry e, long _nextRefreshTime)
put in class StorageAdapter_nextRefreshTime - value expiry time in millis, 0: expire immediately, Long.MAX_VALUE: no expirypublic StorageEntry get(Object key)
get in class StorageAdapterpublic boolean remove(Object key)
remove in class StorageAdapterpublic void evict(Entry e)
evict in class StorageAdapterpublic void expire(Entry e)
StorageAdapterexpire in class StorageAdapterpublic ClosableIterator<Entry> iterateAll()
iterateAll in class StorageAdapterpublic int getTotalEntryCount()
StorageAdaptergetTotalEntryCount in class StorageAdapterCache.getTotalEntryCount()public int getAlert()
StorageAdaptergetAlert in class StorageAdapterpublic void disable(Throwable t)
disable in class StorageAdapterpublic Future<Void> cancelTimerJobs()
StorageAdaptercancelTimerJobs in class StorageAdapterpublic Future<Void> shutdown()
shutdown in class StorageAdaptercache2k API documentation. Copyright © 2000–2015 headissue GmbH, Munich.