public class SpringRemoteCacheManager extends Object implements org.springframework.cache.CacheManager
A implementation that is
backed by an CacheManager instance.
Infinispan RemoteCacheManager
| Constructor and Description |
|---|
SpringRemoteCacheManager(RemoteCacheManager nativeCacheManager) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.cache.Cache |
getCache(String name) |
Collection<String> |
getCacheNames()
As of Infinispan 4.2.0.FINAL
org.infinispan.client.hotrod.RemoteCache does
not support retrieving the set of all cache names from the hotrod server. |
RemoteCacheManager |
getNativeCacheManager()
Return the
that backs this
SpringRemoteCacheManager. |
void |
start()
Start the
that backs this
SpringRemoteCacheManager. |
void |
stop()
Stop the
that backs this
SpringRemoteCacheManager. |
public SpringRemoteCacheManager(RemoteCacheManager nativeCacheManager)
nativeCacheManager - the underlying cache managerpublic org.springframework.cache.Cache getCache(String name)
getCache in interface org.springframework.cache.CacheManagerCacheManager.getCache(java.lang.String)public Collection<String> getCacheNames()
As of Infinispan 4.2.0.FINAL org.infinispan.client.hotrod.RemoteCache does
not support retrieving the set of all cache names from the hotrod server.
This restriction may be lifted in the future. Currently, this operation will always throw an
UnsupportedOperationException.
getCacheNames in interface org.springframework.cache.CacheManagerCacheManager.getCacheNames()public RemoteCacheManager getNativeCacheManager()
org.infinispan.client.hotrod.RemoteCacheManager that backs this
SpringRemoteCacheManager.org.infinispan.client.hotrod.RemoteCacheManager that backs this
SpringRemoteCacheManagerpublic void start()
org.infinispan.client.hotrod.RemoteCacheManager that backs this
SpringRemoteCacheManager.public void stop()
org.infinispan.client.hotrod.RemoteCacheManager that backs this
SpringRemoteCacheManager.Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.