cgl.narada.util
Class HashQueue
java.lang.Object
cgl.narada.util.HashQueue
public class HashQueue
- extends Object
A Hashqueue is a FIFO queue based on Hashtable. We can limit the size of queue hence its a queue,
Entities in the queue can be accessed by using a key hence entries can be accessed using a
hashtable interface. If the size of the queue is greater than the specified value 'N', future
additions would cause removal of items which came in first (FIFO).
Created on Mar 31, 2005
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HashQueue
public HashQueue(int _size)
put
public void put(Object key,
Object object)
clear
public void clear()
get
public Object get(Object key)
remove
public Object remove(Object key)
containsKey
public boolean containsKey(Object key)
For comments and suggestions please send
e-mail to
The NaradaBrokering Project