org.apache.jackrabbit.core.persistence.bundle.util
Class LRUNodeIdCache

java.lang.Object
  extended by org.apache.jackrabbit.core.persistence.bundle.util.LRUNodeIdCache

public class LRUNodeIdCache
extends Object

Implements a LRU NodeId cache.


Constructor Summary
LRUNodeIdCache()
           
 
Method Summary
 void clear()
          Clears this cache.
 boolean contains(NodeId id)
          Checks if the given id is contained in this cached.
 void put(NodeId id)
          Puts the given id to this cache.
 boolean remove(NodeId id)
          Removes the it to this cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LRUNodeIdCache

public LRUNodeIdCache()
Method Detail

contains

public boolean contains(NodeId id)
Checks if the given id is contained in this cached.

Parameters:
id - the id to check
Returns:
true if the id is cached; false otherwise.

put

public void put(NodeId id)
Puts the given id to this cache.

Parameters:
id - the id to put.

remove

public boolean remove(NodeId id)
Removes the it to this cache

Parameters:
id - the id to remove
Returns:
true if the id was cached; false otherwise.

clear

public void clear()
Clears this cache.



Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.