org.shiftone.cache.decorator.tandem
Class TandemCacheFactory

java.lang.Object
  extended byorg.shiftone.cache.decorator.tandem.TandemCacheFactory
All Implemented Interfaces:
CacheFactory

public class TandemCacheFactory
extends java.lang.Object
implements CacheFactory

Creates a single cache that delegates to a pair of different caches.

Version:
$Revision: 1.3 $
Author:
$Author: jeffdrost $

Constructor Summary
TandemCacheFactory()
           
 
Method Summary
 CacheFactory getDelegateA()
           
 CacheFactory getDelegateB()
           
 boolean isAllGets()
           
 Cache newInstance(java.lang.String cacheName, long timeoutMilliSeconds, int maxSize)
           
 void setAllGets(boolean allGets)
           
 void setDelegateA(CacheFactory delegateA)
           
 void setDelegateB(CacheFactory delegateB)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TandemCacheFactory

public TandemCacheFactory()
Method Detail

newInstance

public Cache newInstance(java.lang.String cacheName,
                         long timeoutMilliSeconds,
                         int maxSize)
Specified by:
newInstance in interface CacheFactory

isAllGets

public boolean isAllGets()

setAllGets

public void setAllGets(boolean allGets)

getDelegateA

public CacheFactory getDelegateA()

setDelegateA

public void setDelegateA(CacheFactory delegateA)

getDelegateB

public CacheFactory getDelegateB()

setDelegateB

public void setDelegateB(CacheFactory delegateB)