Class SpringRemoteCacheManager
java.lang.Object
org.infinispan.spring.remote.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 an CacheManager
instance.
Infinispan RemoteCacheManager
- Author:
- Olaf Bergner, Marius Bogoevici
-
Constructor Summary
ConstructorsConstructorDescriptionSpringRemoteCacheManager
(RemoteCacheManager nativeCacheManager) SpringRemoteCacheManager
(RemoteCacheManager nativeCacheManager, long readTimeout, long writeTimeout) -
Method Summary
Modifier and TypeMethodDescriptionReturn the
that backs thisorg.infinispan.client.hotrod.RemoteCacheManager
SpringRemoteCacheManager
.long
long
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 Details
-
SpringRemoteCacheManager
public SpringRemoteCacheManager(RemoteCacheManager nativeCacheManager, long readTimeout, long writeTimeout) - Parameters:
nativeCacheManager
- the underlying cache manager
-
SpringRemoteCacheManager
-
-
Method Details
-
getCache
- Specified by:
getCache
in interfaceorg.springframework.cache.CacheManager
- See Also:
-
getCacheNames
- Specified by:
getCacheNames
in interfaceorg.springframework.cache.CacheManager
- See Also:
-
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
.
-