Package org.infinispan.spring.provider
Class SpringRemoteCacheManager
- java.lang.Object
-
- org.infinispan.spring.provider.SpringRemoteCacheManager
-
- All Implemented Interfaces:
org.springframework.cache.CacheManager
public class SpringRemoteCacheManager extends Object implements org.springframework.cache.CacheManager
A
implementation that is backed by anCacheManager
instance.Infinispan RemoteCacheManager
- Author:
- Olaf Bergner, Marius Bogoevici
-
-
Constructor Summary
Constructors Constructor Description SpringRemoteCacheManager(org.infinispan.client.hotrod.RemoteCacheManager nativeCacheManager)
SpringRemoteCacheManager(org.infinispan.client.hotrod.RemoteCacheManager nativeCacheManager, long readTimeout, long writeTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpringCache
getCache(String name)
Collection<String>
getCacheNames()
org.infinispan.client.hotrod.RemoteCacheManager
getNativeCacheManager()
Return the
that backs thisorg.infinispan.client.hotrod.RemoteCacheManager
SpringRemoteCacheManager
.long
getReadTimeout()
long
getWriteTimeout()
void
setReadTimeout(long readTimeout)
void
setWriteTimeout(long writeTimeout)
void
start()
Start the
that backs thisorg.infinispan.client.hotrod.RemoteCacheManager
SpringRemoteCacheManager
.void
stop()
Stop the
that backs thisorg.infinispan.client.hotrod.RemoteCacheManager
SpringRemoteCacheManager
.
-
-
-
Constructor Detail
-
SpringRemoteCacheManager
public SpringRemoteCacheManager(org.infinispan.client.hotrod.RemoteCacheManager nativeCacheManager, long readTimeout, long writeTimeout)
- Parameters:
nativeCacheManager
- the underlying cache manager
-
SpringRemoteCacheManager
public SpringRemoteCacheManager(org.infinispan.client.hotrod.RemoteCacheManager nativeCacheManager)
-
-
Method Detail
-
getCache
public SpringCache getCache(String name)
- Specified by:
getCache
in interfaceorg.springframework.cache.CacheManager
- See Also:
CacheManager.getCache(java.lang.String)
-
getCacheNames
public Collection<String> getCacheNames()
- Specified by:
getCacheNames
in interfaceorg.springframework.cache.CacheManager
- See Also:
CacheManager.getCacheNames()
-
getNativeCacheManager
public org.infinispan.client.hotrod.RemoteCacheManager getNativeCacheManager()
Return the
that backs thisorg.infinispan.client.hotrod.RemoteCacheManager
SpringRemoteCacheManager
.- Returns:
- The
that backs thisorg.infinispan.client.hotrod.RemoteCacheManager
SpringRemoteCacheManager
-
getReadTimeout
public long getReadTimeout()
-
getWriteTimeout
public long getWriteTimeout()
-
setReadTimeout
public void setReadTimeout(long readTimeout)
-
setWriteTimeout
public void setWriteTimeout(long writeTimeout)
-
start
public void start()
Start the
that backs thisorg.infinispan.client.hotrod.RemoteCacheManager
SpringRemoteCacheManager
.
-
stop
public void stop()
Stop the
that backs thisorg.infinispan.client.hotrod.RemoteCacheManager
SpringRemoteCacheManager
.
-
-