net.sf.ehcache.store

Class FifoMemoryStore

public final class FifoMemoryStore extends MemoryStore

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

Version: $Id: FifoMemoryStore.java 94 2006-05-25 09:06:30Z gregluck $

Author: Surya Suravarapu

Constructor Summary
FifoMemoryStore(Ehcache cache, DiskStore diskStore)
Constructor for the FifoMemoryStore object.
Method Summary
protected voiddoPut(Element element)
Allow specialised actions over adding the element to the map
ElementgetFirstElement()
Returns the first eligible element that can be taken out of the cache based on the FIFO policy

Constructor Detail

FifoMemoryStore

public FifoMemoryStore(Ehcache cache, DiskStore diskStore)
Constructor for the FifoMemoryStore object.

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

Method Detail

doPut

protected final void doPut(Element element)
Allow specialised actions over adding the element to the map

Parameters: element

getFirstElement

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