org.castor.cache.hashbelt

Class FIFOHashbelt

Implemented Interfaces:
Cache, Map

public final class FIFOHashbelt
extends AbstractHashbelt

A perfectly ordinary hashbelt. Objects all go into the first container on the belt, and make their way down over time until they fall off the end.
Version:
$Revision: 6907 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Ralf Joachim
Since:
1.0

Field Summary

static String
TYPE
The type of the cache.

Fields inherited from class org.castor.cache.hashbelt.AbstractHashbelt

DEFAULT_CAPACITY, DEFAULT_CONTAINERS, DEFAULT_CONTAINER_CLASS, DEFAULT_MONITOR, DEFAULT_REAPER_CLASS, DEFAULT_TTL, PARAM_CAPACITY, PARAM_CONTAINERS, PARAM_CONTAINER_CLASS, PARAM_MONITOR, PARAM_REAPER_CLASS, PARAM_TTL

Fields inherited from interface org.castor.cache.Cache

DEFAULT_DEBUG, DEFAULT_NAME, DEFAULT_TYPE, PARAM_DEBUG, PARAM_NAME, PARAM_TYPE

Method Summary

Object
get(Object key)
String
getType()
Object
put(Object key, Object value)
void
putAll(Map map)
Object
remove(Object key)

Methods inherited from class org.castor.cache.hashbelt.AbstractHashbelt

clear, close, containsKey, containsValue, entrySet, getCapacity, getObjectFromCache, getTTL, initialize, isEmpty, keySet, lock, putObjectIntoCache, removeObjectFromCache, size, values

Methods inherited from class org.castor.cache.AbstractBaseCache

close, expire, expireAll, getName, initialize, invokeMethod, invokeStaticMethod

Field Details

TYPE

public static final String TYPE
The type of the cache.

Method Details

get

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

getType

public String getType()
Specified by:
getType in interface Cache

put

public Object put(Object key,
                  Object value)
See Also:
java.util.Map.put(java.lang.Object, java.lang.Object)

putAll

public void putAll(Map map)
See Also:
java.util.Map.putAll(java.util.Map)

remove

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

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