K
- V
- public class RemoteCacheConnection<K,V> extends Object implements InfinispanCacheWrapper<K,V>
Server List (host:port,..)
Server Property File
Constructor and Description |
---|
RemoteCacheConnection() |
Modifier and Type | Method and Description |
---|---|
void |
add(Object key,
Object value) |
void |
cleanUp() |
Object |
get(Object key) |
List<Object> |
getAll()
Call to obtain all the objects from the cache
|
org.infinispan.client.hotrod.RemoteCache |
getCache()
Call to obtain Cache
|
InfinispanManagedConnectionFactory |
getConfig() |
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) |
public InfinispanManagedConnectionFactory getConfig()
public void init(InfinispanManagedConnectionFactory config, Object cacheManager)
InfinispanCacheWrapper
init
in interface InfinispanCacheWrapper<K,V>
cacheManager
- objectpublic void init(InfinispanManagedConnectionFactory config) throws javax.resource.ResourceException
InfinispanCacheWrapper
init
in interface InfinispanCacheWrapper<K,V>
javax.resource.ResourceException
public boolean isAlive()
true if the CacheContainer has been started.
isAlive
in interface InfinispanCacheWrapper<K,V>
public List<Object> getAll()
InfinispanCacheWrapper
getAll
in interface InfinispanCacheWrapper<K,V>
public Collection<Object> getFirst(int limit)
getFirst
in interface InfinispanCacheWrapper<K,V>
limit
- to the number objects to returnpublic org.infinispan.client.hotrod.RemoteCache getCache()
InfinispanCacheWrapper
getCache
in interface InfinispanCacheWrapper<K,V>
public void cleanUp()
cleanUp
in interface InfinispanCacheWrapper<K,V>
public org.infinispan.query.dsl.QueryFactory getQueryFactory()
getQueryFactory
in interface InfinispanCacheWrapper<K,V>
public Object get(Object key)
get
in interface InfinispanCacheWrapper<K,V>
InfinispanCacheWrapper.get(java.lang.Object)
public void add(Object key, Object value)
add
in interface InfinispanCacheWrapper<K,V>
InfinispanCacheWrapper.add(java.lang.Object, java.lang.Object)
public Object remove(Object key)
remove
in interface InfinispanCacheWrapper<K,V>
InfinispanCacheWrapper.remove(java.lang.Object)
public void update(Object key, Object value)
update
in interface InfinispanCacheWrapper<K,V>
InfinispanCacheWrapper.update(java.lang.Object, java.lang.Object)
Copyright © 2013–2015 JBoss by Red Hat. All rights reserved.