K
- V
- public interface InfinispanCacheWrapper<K,V>
Modifier and Type | Method and Description |
---|---|
void |
add(Object key,
Object value) |
void |
cleanUp() |
Object |
get(Object key) |
Collection<Object> |
getAll()
Call to obtain all the objects from the cache
|
Map<Object,Object> |
getCache()
Call to obtain Cache
|
Collection<Object> |
getFirst(int limit)
Call to obtain all the objects from the cache
|
org.infinispan.query.dsl.QueryFactory |
getQueryFactory() |
void |
init(InfinispanManagedConnectionFactory config)
Called so the wrapper, with the configuration, can create the cache manager it will use
|
void |
init(InfinispanManagedConnectionFactory config,
Object cacheManager)
Called to pass in the cacheManager it will use.
|
boolean |
isAlive()
Will return
true if the CacheContainer has been started. |
Object |
remove(Object key) |
void |
update(Object key,
Object value) |
void init(InfinispanManagedConnectionFactory config) throws javax.resource.ResourceException
config
- javax.resource.ResourceException
void init(InfinispanManagedConnectionFactory config, Object cacheManager)
config
- cacheManager
- objectboolean isAlive()
true if the CacheContainer has been started.
Collection<Object> getAll()
Collection<Object> getFirst(int limit)
limit
- to the number objects to returnvoid cleanUp()
org.infinispan.query.dsl.QueryFactory getQueryFactory()
Object get(Object key) throws TranslatorException
key
- TranslatorException
ObjectConnection.get(java.lang.Object)
void add(Object key, Object value) throws TranslatorException
key
- value
- TranslatorException
ObjectConnection.add(java.lang.Object, java.lang.Object)
Object remove(Object key) throws TranslatorException
key
- TranslatorException
ObjectConnection.remove(java.lang.Object)
void update(Object key, Object value) throws TranslatorException
key
- value
- TranslatorException
ObjectConnection.update(java.lang.Object, java.lang.Object)
Copyright © 2013–2015 JBoss by Red Hat. All rights reserved.