org.shiftone.cache.decorator.tandem
Class TandemAllGetsCache

java.lang.Object
  extended byorg.shiftone.cache.decorator.tandem.TandemCache
      extended byorg.shiftone.cache.decorator.tandem.TandemAllGetsCache
All Implemented Interfaces:
Cache

public class TandemAllGetsCache
extends TandemCache

Overides getObject to ALWAYSE delegate all gets to all caches. This ensures that any stats that are kept by the caches are in sync.

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

Field Summary
 
Fields inherited from class org.shiftone.cache.decorator.tandem.TandemCache
caches
 
Constructor Summary
TandemAllGetsCache(Cache[] caches)
           
 
Method Summary
 java.lang.Object getObject(java.lang.Object key)
          gets the value stored in the cache by it's key, or null if the key is not found.
 
Methods inherited from class org.shiftone.cache.decorator.tandem.TandemCache
addObject, clear, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TandemAllGetsCache

public TandemAllGetsCache(Cache[] caches)
Method Detail

getObject

public java.lang.Object getObject(java.lang.Object key)
Description copied from interface: Cache
gets the value stored in the cache by it's key, or null if the key is not found.

Specified by:
getObject in interface Cache
Overrides:
getObject in class TandemCache