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 java.lang.Object implements org.springframework.cache.CacheManagerA
implementation that is backed by anCacheManagerinstance.Infinispan RemoteCacheManager- Author:
- Olaf Bergner, Marius Bogoevici
-
-
Constructor Summary
Constructors Constructor Description SpringRemoteCacheManager(RemoteCacheManager nativeCacheManager)SpringRemoteCacheManager(RemoteCacheManager nativeCacheManager, long readTimeout, long writeTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpringCachegetCache(java.lang.String name)java.util.Collection<java.lang.String>getCacheNames()RemoteCacheManagergetNativeCacheManager()Return thethat backs thisorg.infinispan.client.hotrod.RemoteCacheManagerSpringRemoteCacheManager.longgetReadTimeout()longgetWriteTimeout()voidsetReadTimeout(long readTimeout)voidsetWriteTimeout(long writeTimeout)voidstart()Start thethat backs thisorg.infinispan.client.hotrod.RemoteCacheManagerSpringRemoteCacheManager.voidstop()Stop thethat backs thisorg.infinispan.client.hotrod.RemoteCacheManagerSpringRemoteCacheManager.
-
-
-
Constructor Detail
-
SpringRemoteCacheManager
public SpringRemoteCacheManager(RemoteCacheManager nativeCacheManager, long readTimeout, long writeTimeout)
- Parameters:
nativeCacheManager- the underlying cache manager
-
SpringRemoteCacheManager
public SpringRemoteCacheManager(RemoteCacheManager nativeCacheManager)
-
-
Method Detail
-
getCache
public SpringCache getCache(java.lang.String name)
- Specified by:
getCachein interfaceorg.springframework.cache.CacheManager- See Also:
CacheManager.getCache(java.lang.String)
-
getCacheNames
public java.util.Collection<java.lang.String> getCacheNames()
- Specified by:
getCacheNamesin interfaceorg.springframework.cache.CacheManager- See Also:
CacheManager.getCacheNames()
-
getNativeCacheManager
public RemoteCacheManager getNativeCacheManager()
Return thethat backs thisorg.infinispan.client.hotrod.RemoteCacheManagerSpringRemoteCacheManager.- Returns:
- The
that backs thisorg.infinispan.client.hotrod.RemoteCacheManagerSpringRemoteCacheManager
-
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 thethat backs thisorg.infinispan.client.hotrod.RemoteCacheManagerSpringRemoteCacheManager.
-
stop
public void stop()
Stop thethat backs thisorg.infinispan.client.hotrod.RemoteCacheManagerSpringRemoteCacheManager.
-
-