org.castor.cache.hashbelt.container

Class MapContainer

public final class MapContainer extends ConcurrentHashMap implements Container

A very basic, HashMap-based implementation of the hashmap container strategy, using nothing more than a basic hashmap to store key/value pairs. This works well for lots of gets and a reasonably high volume of removes; if few removes are required, and iterators are important to your particluar use-case of the cache, it's better to use the FastIteratingContainer, which can handle iterating at a higher speed, still has a map for accessing hash values, but has a higher removal cost.

Since: 1.0

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

Author: Gregory Block Ralf Joachim

Method Summary
longgetTimestamp()
IteratorkeyIterator()
voidupdateTimestamp()
IteratorvalueIterator()

Method Detail

getTimestamp

public long getTimestamp()
{@inheritDoc }

See Also: getTimestamp

keyIterator

public Iterator keyIterator()
{@inheritDoc }

See Also: keyIterator

updateTimestamp

public void updateTimestamp()
{@inheritDoc }

See Also: updateTimestamp

valueIterator

public Iterator valueIterator()
{@inheritDoc }

See Also: valueIterator

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