org.shiftone.cache.policy.zero
Class ZeroCacheFactory

java.lang.Object
  extended byorg.shiftone.cache.policy.zero.ZeroCacheFactory
All Implemented Interfaces:
CacheFactory

public class ZeroCacheFactory
extends java.lang.Object
implements CacheFactory

Creates a cache that never stores anything you give it. This is a non-cache.

Version:
$Revision: 1.5 $
Author:
Jeff Drost

Field Summary
static Cache NULL_CACHE
           
static CacheFactory NULL_CACHE_FACTORY
           
 
Constructor Summary
ZeroCacheFactory()
           
 
Method Summary
 Cache newInstance(java.lang.String cacheName, long timeoutMilliSeconds, int maxSize)
          Method newInstance
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_CACHE_FACTORY

public static final CacheFactory NULL_CACHE_FACTORY

NULL_CACHE

public static final Cache NULL_CACHE
Constructor Detail

ZeroCacheFactory

public ZeroCacheFactory()
Method Detail

newInstance

public Cache newInstance(java.lang.String cacheName,
                         long timeoutMilliSeconds,
                         int maxSize)
Method newInstance

Specified by:
newInstance in interface CacheFactory

toString

public java.lang.String toString()