org.kuali.rice.core.impl.cache
Class DistributedCacheManagerDecorator

java.lang.Object
  extended by org.kuali.rice.core.impl.cache.DistributedCacheManagerDecorator
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.NamedBean, org.springframework.cache.CacheManager

public final class DistributedCacheManagerDecorator
extends Object
implements org.springframework.cache.CacheManager, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.NamedBean

A distributed cache manager that wraps a cache manager and adds distributed cache capabilities through the kuali service bus.

If in a transaction, distributed cache messages are queued until a transaction completes successfully. They are then sent as a single message rather than sending individual messages. If the transaction does not complete successfully then all messages are discarded.

If not in a transaction, distributed messages are sent immediately. This should be avoided and is likely the result of a programming error.


Constructor Summary
DistributedCacheManagerDecorator()
           
 
Method Summary
 void afterPropertiesSet()
           
 String getBeanName()
           
 org.springframework.cache.Cache getCache(String name)
           
 Collection<String> getCacheNames()
           
 void setBeanName(String name)
           
 void setCacheManager(org.springframework.cache.CacheManager cacheManager)
           
 void setServiceName(String serviceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedCacheManagerDecorator

public DistributedCacheManagerDecorator()
Method Detail

getCache

public org.springframework.cache.Cache getCache(String name)
Specified by:
getCache in interface org.springframework.cache.CacheManager

getCacheNames

public Collection<String> getCacheNames()
Specified by:
getCacheNames in interface org.springframework.cache.CacheManager

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

setCacheManager

public void setCacheManager(org.springframework.cache.CacheManager cacheManager)

setServiceName

public void setServiceName(String serviceName)

getBeanName

public String getBeanName()
Specified by:
getBeanName in interface org.springframework.beans.factory.NamedBean

setBeanName

public void setBeanName(String name)
Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.