org.castor.cache.hashbelt

Class LRUHashbelt

public final class LRUHashbelt extends AbstractHashbelt

A type of hashbelt that moves requested elements back into the first container when a get or add occurs.

Objects which are rarely used will work their way down the conveyor belt, and eventually be discarded, if they are not referenced.

Since: 1.0

Version: $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $

Author: Ralf Joachim

Field Summary
static StringTYPE
The type of the cache.
Method Summary
Objectget(Object key)
StringgetType()
Objectput(Object key, Object value)
voidputAll(Map map)
Objectremove(Object key)

Field Detail

TYPE

public static final String TYPE
The type of the cache.

Method Detail

get

public Object get(Object key)
{@inheritDoc }

See Also: java.util.Map#get(java.lang.Object)

getType

public String getType()
{@inheritDoc }

See Also: getType

put

public Object put(Object key, Object value)
{@inheritDoc }

See Also: java.util.Map#put(java.lang.Object, java.lang.Object)

putAll

public void putAll(Map map)
{@inheritDoc }

See Also: java.util.Map#putAll(java.util.Map)

remove

public Object remove(Object key)
{@inheritDoc }

See Also: java.util.Map#remove(java.lang.Object)

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com