public class AggregationStorageAdapter extends StorageAdapter
| Constructor and Description |
|---|
AggregationStorageAdapter() |
| 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)
Bad thing occurred, we do not what storage is to be blamed.
|
void |
disconnectStorageForClear() |
void |
evict(Entry e) |
void |
expire(Entry e)
TODO: Relly needed?
|
void |
flush() |
StorageEntry |
get(Object key)
Ask storages for the entry.
|
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()
Use the last storage, which should be the biggest and contain
all entries.
|
void |
open() |
void |
purge() |
void |
put(Entry e,
long _nextRefreshTime)
Send put to all storage instances.
|
boolean |
remove(Object key) |
void |
resetStorage(StorageAdapter _current,
StorageAdapter _new)
Change the storage implementation to another one or null for a disconnect
|
Future<Void> |
shutdown() |
buildThrowable, rethrowpublic AggregationStorageAdapter()
public void open()
open in class StorageAdapterpublic void flush()
flush in class StorageAdapterpublic void purge()
purge in class StorageAdapterpublic Future<Void> shutdown()
shutdown 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 void resetStorage(StorageAdapter _current, StorageAdapter _new)
public Future<Void> cancelTimerJobs()
StorageAdaptercancelTimerJobs in class StorageAdaptercache2k API documentation. Copyright © 2000–2015 headissue GmbH, Munich.