| Modifier and Type | Field and Description |
|---|---|
| pack-priv Set | |
| pack-priv WritableCachedStore. | |
| pack-priv TweakableCachedStore | |
| private static final Object | |
| pack-priv HashMap |
| Access | Constructor and Description |
|---|---|
| pack-priv | SimpleWritableCachedStore(TweakableCachedStore readOnlyCache, WritableCachedStore.
the readOnlyCache MUST use manager for its CachedStore.Manager... |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearPendingWrites()
Implements com. Clears any pending (unflushed or failed) writes and removes. |
| public Object | |
| public void | flushWrites()
Implements com. flushes writes to back end, IN NO PARTICULAR ORDER! |
| public Set | |
| public void | |
| public void | reset()
Implements com. Clears (WITHOUT WRITING) any pending (unflushed or failed) writes and removes, and any cached reads. |
| public void | sync()
Implements com. flushes writes and then clears cached reads. |
| public void |
| failedWrites | back to summary |
|---|---|
| pack-priv Set<E> failedWrites | |
| manager | back to summary |
|---|---|
| pack-priv WritableCachedStore. | |
| readOnlyCache | back to summary |
|---|---|
| pack-priv TweakableCachedStore readOnlyCache | |
| REMOVE_TOKEN | back to summary |
|---|---|
| private static final Object REMOVE_TOKEN | |
| writeCache | back to summary |
|---|---|
| pack-priv HashMap<K, V> writeCache | |
| SimpleWritableCachedStore | back to summary |
|---|---|
| pack-priv SimpleWritableCachedStore(TweakableCachedStore readOnlyCache, WritableCachedStore. the readOnlyCache MUST use manager for its CachedStore.Manager... | |
| clearPendingWrites | back to summary |
|---|---|
| public void clearPendingWrites() Implements com. Doc from com. Clears any pending (unflushed or failed) writes and removes. | |
| find | back to summary |
|---|---|
| public Object find(Object key) throws CachedStoreException Implements com. | |
| flushWrites | back to summary |
|---|---|
| public void flushWrites() throws CacheFlushException Implements com. Doc from com. 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. Values that failed to write are still "pending": they will attempt to write on the next flush, and will still be read from the cache. Use clearPendingWrites() to avoid seeing or writing these values again. | |
| getFailedWrites | back to summary |
|---|---|
| public Set Implements com.
| |
| remove | back to summary |
|---|---|
| public void remove(Object key) Implements com. | |
| reset | back to summary |
|---|---|
| public void reset() throws CachedStoreException Implements com. Doc from com. Clears (WITHOUT WRITING) any pending (unflushed or failed) writes and removes, and any cached reads. | |
| sync | back to summary |
|---|---|
| public void sync() throws CachedStoreException Implements com. Doc from com. flushes writes and then clears cached reads. On successful completion, the cache and the back-end store will be in sync with one another. | |
| write | back to summary |
|---|---|
| public void write(Object key, Object value) Implements com. | |