public interface ByteStreamCache
Modifier and Type | Method and Description |
---|---|
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 accessedExpireTimeout,
long modifiedExpireTimeout)
Puts a new item in the cache.
|
ExtCacheEntry<?,?> |
put(java.lang.Object key,
java.io.InputStream is,
long accessedExpireTimeout,
long modifiedExpireTimeout,
int flags)
Puts a new item in the cache.
|
ExtCacheEntry<?,?> |
put(java.lang.Object key,
java.io.InputStream is,
long accessedExpireTimeout,
long modifiedExpireTimeout,
long accessTime,
long modifiedTime)
Puts a new item in the cache.
|
boolean |
putIfNew(java.lang.Object key,
MnodeUpdate update,
java.io.InputStream is)
Updates the cache if the old value hash matches the current value.
|
boolean |
remove(java.lang.Object key)
Removes the entry from the cache
|
boolean get(java.lang.Object key, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
ExtCacheEntry<?,?> getExtCacheEntry(java.lang.Object key)
ExtCacheEntry<?,?> peekExtCacheEntry(java.lang.Object key)
ExtCacheEntry<?,?> put(java.lang.Object key, java.io.InputStream is, long accessedExpireTimeout, long modifiedExpireTimeout) throws java.io.IOException
key
- the key of the item to putis
- stream to contain the valuejava.io.IOException
ExtCacheEntry<?,?> put(java.lang.Object key, java.io.InputStream is, long accessedExpireTimeout, long modifiedExpireTimeout, long accessTime, long modifiedTime) throws java.io.IOException
key
- the key of the item to putis
- stream to contain the valuejava.io.IOException
ExtCacheEntry<?,?> put(java.lang.Object key, java.io.InputStream is, long accessedExpireTimeout, long modifiedExpireTimeout, int flags) throws java.io.IOException
key
- the key of the item to putis
- stream to contain the valuejava.io.IOException
boolean putIfNew(java.lang.Object key, MnodeUpdate update, java.io.InputStream is) throws java.io.IOException
key
- the key to compareoldVersion
- the version of the old value, returned by getEntryjava.io.IOException
boolean remove(java.lang.Object key)
boolean compareAndRemove(java.lang.Object key, long oldVersion)