public interface ICacheStoreComponent extends IComponent
| Modifier and Type | Method and Description |
|---|---|
<T> void |
get(String cacheKey,
Class<T> type,
IAsyncResultHandler<T> handler)
Gets a cache entry.
|
<T> void |
getBinary(String cacheKey,
Class<T> type,
IAsyncResultHandler<ISignalReadStream<T>> handler)
Gets a cache entry with its binary data.
|
<T> void |
put(String cacheKey,
T jsonObject,
long timeToLive)
Put an entry into the cache.
|
<T> ISignalWriteStream |
putBinary(String cacheKey,
T jsonObject,
long timeToLive)
Open a cache store entry so that data can be streamed into it.
|
<T> void put(String cacheKey, T jsonObject, long timeToLive) throws IOException
cacheKey - jsonObject - timeToLive - IOException<T> ISignalWriteStream putBinary(String cacheKey, T jsonObject, long timeToLive) throws IOException
cacheKey - jsonObject - timeToLive - IOException<T> void get(String cacheKey, Class<T> type, IAsyncResultHandler<T> handler)
cacheKey - type - IOException<T> void getBinary(String cacheKey, Class<T> type, IAsyncResultHandler<ISignalReadStream<T>> handler)
cacheKey - IOExceptionCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.