public interface WritableCachedStore extends CachedStore
Modifier and Type | Interface and Description |
---|---|
static interface |
WritableCachedStore.Manager |
Modifier and Type | Method and Description |
---|---|
void |
clearPendingWrites()
Clears any pending (unflushed or failed) writes and removes.
|
void |
flushWrites()
flushes writes to back end, IN NO PARTICULAR ORDER!
(If you write a key twice, the second write reliably supercedes
the first, however.)
If this method fails, you can use getFailedWrites()
to see what keys could not be written.
|
java.util.Set |
getFailedWrites() |
void |
remove(java.lang.Object key) |
void |
reset()
Clears (WITHOUT WRITING) any pending (unflushed or failed)
writes and removes, and any cached reads.
|
void |
sync()
flushes writes and then clears cached reads.
|
void |
write(java.lang.Object key,
java.lang.Object value) |
find
void write(java.lang.Object key, java.lang.Object value) throws CachedStoreException
CachedStoreException
void remove(java.lang.Object key) throws CachedStoreException
CachedStoreException
void flushWrites() throws CacheFlushException
CacheFlushException
java.util.Set getFailedWrites() throws CachedStoreException
CachedStoreException
void clearPendingWrites() throws CachedStoreException
CachedStoreException
void reset() throws CachedStoreException
reset
in interface CachedStore
CachedStoreException
void sync() throws CachedStoreException
CachedStoreException