org.infinispan.spring.provider
Class SpringRemoteCacheManager

java.lang.Object
  extended by org.infinispan.spring.provider.SpringRemoteCacheManager
All Implemented Interfaces:
org.springframework.cache.CacheManager

public class SpringRemoteCacheManager
extends Object
implements org.springframework.cache.CacheManager

A CacheManager implementation that is backed by an Infinispan RemoteCacheManager instance.

Author:
Olaf Bergner

Constructor Summary
SpringRemoteCacheManager(RemoteCacheManager nativeCacheManager)
           
 
Method Summary
<K,V> org.springframework.cache.Cache<K,V>
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 org.infinispan.client.hotrod.RemoteCacheManager that backs this SpringRemoteCacheManager.
 void start()
          Start the org.infinispan.client.hotrod.RemoteCacheManager that backs this SpringRemoteCacheManager.
 void stop()
          Stop the org.infinispan.client.hotrod.RemoteCacheManager that backs this SpringRemoteCacheManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringRemoteCacheManager

public SpringRemoteCacheManager(RemoteCacheManager nativeCacheManager)
Parameters:
nativeCacheManager -
Method Detail

getCache

public <K,V> org.springframework.cache.Cache<K,V> getCache(String name)
Specified by:
getCache in interface org.springframework.cache.CacheManager
See Also:
CacheManager.getCache(java.lang.String)

getCacheNames

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.

Specified by:
getCacheNames in interface org.springframework.cache.CacheManager
See Also:
CacheManager.getCacheNames()

getNativeCacheManager

public RemoteCacheManager getNativeCacheManager()
Return the org.infinispan.client.hotrod.RemoteCacheManager that backs this SpringRemoteCacheManager.

Returns:
The org.infinispan.client.hotrod.RemoteCacheManager that backs this SpringRemoteCacheManager

start

public void start()
Start the org.infinispan.client.hotrod.RemoteCacheManager that backs this SpringRemoteCacheManager.


stop

public void stop()
Stop the org.infinispan.client.hotrod.RemoteCacheManager that backs this SpringRemoteCacheManager.


-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.