|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.client.hotrod.RemoteCacheManager
public class RemoteCacheManager
// TODO: Document this
Constructor Summary | |
---|---|
RemoteCacheManager()
Same as RemoteCacheManager(boolean) and it also starts the cache. |
|
RemoteCacheManager(boolean start)
Same as RemoteCacheManager(java.util.Properties) , but it will try to lookup the config properties in the
classpath, in a file named hotrod-client.properties. |
|
RemoteCacheManager(Properties props)
Same as RemoteCacheManager(java.util.Properties, boolean) , and it also starts the cache (start==true). |
|
RemoteCacheManager(Properties props,
boolean start)
Build a cache manager based on supplied given properties. |
|
RemoteCacheManager(URL config)
Same as RemoteCacheManager(java.net.URL) and it also starts the cache (start==true). |
|
RemoteCacheManager(URL config,
boolean start)
Same as RemoteCacheManager(java.util.Properties) , but it will try to lookup the config properties in
supplied URL. |
Method Summary | ||
---|---|---|
|
getCache()
Retrieves the default cache associated with this cache container. |
|
|
getCache(String cacheName)
Retrieves a named cache from the system. |
|
boolean |
isStarted()
|
|
void |
start()
|
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteCacheManager(Properties props, boolean start)
public RemoteCacheManager(Properties props)
RemoteCacheManager(java.util.Properties, boolean)
, and it also starts the cache (start==true).
public RemoteCacheManager(boolean start)
RemoteCacheManager(java.util.Properties)
, but it will try to lookup the config properties in the
classpath, in a file named hotrod-client.properties.
start
- weather or not to start the RemoteCacheManager
HotRodClientException
- if such a file cannot be found in the classpathpublic RemoteCacheManager()
RemoteCacheManager(boolean)
and it also starts the cache.
public RemoteCacheManager(URL config, boolean start)
RemoteCacheManager(java.util.Properties)
, but it will try to lookup the config properties in
supplied URL.
start
- weather or not to start the RemoteCacheManager
HotRodClientException
- if properties could not be loadedpublic RemoteCacheManager(URL config)
RemoteCacheManager(java.net.URL)
and it also starts the cache (start==true).
config
- Method Detail |
---|
public <K,V> RemoteCache<K,V> getCache(String cacheName)
CacheContainer
CacheManager
: when creating a new cache, this method will use the configuration passed in to the CacheManager on construction,
as a template, and then optionally apply any overrides previously defined for the named cache using the CacheManager.defineConfiguration(String, org.infinispan.config.Configuration)
or CacheManager.defineConfiguration(String, String, org.infinispan.config.Configuration)
methods, or declared in the configuration file.
NB: Shared caches are supported (and in fact encouraged) but if they are used it's the users responsibility to
ensure that at least one but only one caller calls stop() on the cache, and it does so with the awareness
that others may be using the cache.
getCache
in interface CacheContainer
cacheName
- name of cache to retrieve
public <K,V> RemoteCache<K,V> getCache()
CacheContainer
getCache
in interface CacheContainer
public void start()
start
in interface Lifecycle
public void stop()
stop
in interface Lifecycle
public boolean isStarted()
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |