cgl.narada.util
Class HashQueue

java.lang.Object
  extended by 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


Constructor Summary
HashQueue(int _size)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 Object get(Object key)
           
 void put(Object key, Object object)
           
 Object remove(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashQueue

public HashQueue(int _size)
Method Detail

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