jet.queue
Class AwakeQueue<E,R>

java.lang.Object
  extended by jet.queue.AwakeQueue<E,R>

public class AwakeQueue<E,R>
extends java.lang.Object

Author:
markus.meisters@web.de

Field Summary
protected  java.util.HashMap<E,java.util.concurrent.locks.ReentrantLock> locks
           
protected  java.util.HashMap<E,R> objects
           
 
Constructor Summary
AwakeQueue()
           
 
Method Summary
 boolean add(E id, R result)
           
 R remove(E id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locks

protected java.util.HashMap<E,java.util.concurrent.locks.ReentrantLock> locks

objects

protected java.util.HashMap<E,R> objects
Constructor Detail

AwakeQueue

public AwakeQueue()
Method Detail

add

public boolean add(E id,
                   R result)

remove

public R remove(E id)