info.magnolia.module.cache
Class DelegateFlushPolicy

java.lang.Object
  extended by info.magnolia.module.cache.DelegateFlushPolicy
All Implemented Interfaces:
FlushPolicy

public class DelegateFlushPolicy
extends Object
implements FlushPolicy

Simple policy that delegates all the requests to any policies added in its policies list. The policies in the list are invoked in the order in which they were added.

Version:
$Id:$
Author:
had

Constructor Summary
DelegateFlushPolicy()
           
 
Method Summary
 void addPolicy(FlushPolicy policy)
           
 List<FlushPolicy> getPolicies()
           
 void setPolicies(List<FlushPolicy> policies)
           
 void start(Cache cache)
           
 void stop(Cache cache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateFlushPolicy

public DelegateFlushPolicy()
Method Detail

getPolicies

public List<FlushPolicy> getPolicies()

setPolicies

public void setPolicies(List<FlushPolicy> policies)

addPolicy

public void addPolicy(FlushPolicy policy)

start

public void start(Cache cache)
Specified by:
start in interface FlushPolicy

stop

public void stop(Cache cache)
Specified by:
stop in interface FlushPolicy


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.