|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ByteStreamCache
Interface for a distributed cache.
| Method Summary | |
|---|---|
boolean |
compareAndPut(java.lang.Object key,
long oldVersion,
java.io.InputStream is)
Updates the cache if the old value hash matches the current value. |
boolean |
compareAndRemove(java.lang.Object key,
long oldVersion)
Removes the entry from the cache if the current entry matches the hash |
boolean |
get(java.lang.Object key,
java.io.OutputStream os)
Fills a stream for the content with the given key. |
ExtCacheEntry |
getExtCacheEntry(java.lang.Object key)
Returns the cache entry for the object with the given key. |
ExtCacheEntry |
peekExtCacheEntry(java.lang.Object key)
Returns the cache entry for the object with the given key, without triggering a load. |
ExtCacheEntry |
put(java.lang.Object key,
java.io.InputStream is,
long idleTimeout)
Puts a new item in the cache. |
java.lang.Object |
remove(java.lang.Object key)
Removes the entry from the cache |
| Method Detail |
|---|
boolean get(java.lang.Object key,
java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionExtCacheEntry getExtCacheEntry(java.lang.Object key)
ExtCacheEntry peekExtCacheEntry(java.lang.Object key)
ExtCacheEntry put(java.lang.Object key,
java.io.InputStream is,
long idleTimeout)
throws java.io.IOException
key - the key of the item to putis - stream to contain the value
java.io.IOException
boolean compareAndPut(java.lang.Object key,
long oldVersion,
java.io.InputStream is)
throws java.io.IOException
key - the key to compareoldVersion - the version of the old value, returned by getEntry
java.io.IOExceptionjava.lang.Object remove(java.lang.Object key)
boolean compareAndRemove(java.lang.Object key,
long oldVersion)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||