info.magnolia.module.cache
Class CacheConfiguration

java.lang.Object
  extended by info.magnolia.module.cache.CacheConfiguration

public class CacheConfiguration
extends Object

Each CacheConfiguration holds a CachePolicy, a FlushPolicy and a BrowserCachePolicy. Based on the outcome of the cachePolicy the defined executors will be called.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph
See Also:
CachePolicy, FlushPolicy

Constructor Summary
CacheConfiguration()
           
 
Method Summary
 void addExecutor(String name, CachePolicyExecutor executor)
           
 BrowserCachePolicy getBrowserCachePolicy()
           
 CachePolicy getCachePolicy()
           
 CachePolicyExecutor getExecutor(CachePolicyResult.CachePolicyBehaviour behaviour)
           
 Map getExecutors()
           
 FlushPolicy getFlushPolicy()
           
 String getName()
           
 void setBrowserCachePolicy(BrowserCachePolicy browserCachePolicy)
           
 void setCachePolicy(CachePolicy cachePolicy)
           
 void setExecutors(Map executors)
           
 void setFlushPolicy(FlushPolicy flushPolicy)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheConfiguration

public CacheConfiguration()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getCachePolicy

public CachePolicy getCachePolicy()

setCachePolicy

public void setCachePolicy(CachePolicy cachePolicy)

getFlushPolicy

public FlushPolicy getFlushPolicy()

setFlushPolicy

public void setFlushPolicy(FlushPolicy flushPolicy)

getExecutor

public CachePolicyExecutor getExecutor(CachePolicyResult.CachePolicyBehaviour behaviour)

getBrowserCachePolicy

public BrowserCachePolicy getBrowserCachePolicy()

setBrowserCachePolicy

public void setBrowserCachePolicy(BrowserCachePolicy browserCachePolicy)

getExecutors

public Map getExecutors()

setExecutors

public void setExecutors(Map executors)

addExecutor

public void addExecutor(String name,
                        CachePolicyExecutor executor)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.