com.easyjf.cache.store
Class FifoMemoryStore

java.lang.Object
  extended bycom.easyjf.cache.store.MemoryStore
      extended bycom.easyjf.cache.store.FifoMemoryStore
All Implemented Interfaces:
Store

public class FifoMemoryStore
extends MemoryStore

First-In-First-Out (FIFO) implementation of MemoryStore.

Version:
$Id: FifoMemoryStore.java,v 1.9 2005/10/15 17:32:30 gregluck Exp $
Author:
Surya Suravarapu

Constructor Summary
FifoMemoryStore(ICache cache)
          Constructor for the FifoMemoryStore object.
 
Method Summary
 Element getFirstElement()
          Returns the first eligible element that can be taken out of the cache based on the FIFO policy
 
Methods inherited from class com.easyjf.cache.store.MemoryStore
containsKey, create, dispose, get, getKeyArray, getKeySet, getQuiet, getSize, getSizeInBytes, getStatus, put, remove, removeAll, removeElement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FifoMemoryStore

public FifoMemoryStore(ICache cache)
Constructor for the FifoMemoryStore object.

First tries to use LinkedHashMap. If not found uses Jakarta Commons collections.

Method Detail

getFirstElement

public Element getFirstElement()
Returns the first eligible element that can be taken out of the cache based on the FIFO policy