T - public abstract class QueuePrc<T>
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| (package private) boolean | bPreventRequeue | 
| (package private) java.util.Map<java.lang.String,T> | idxinQueue | 
| (package private) java.util.List<T> | queue | 
| Constructor and Description | 
|---|
| QueuePrc(boolean preventRequeue)Constructs | 
| Modifier and Type | Method and Description | 
|---|---|
| T | addToQueue(int pos,
          T obj)Adds an object to the queue and checks before whether it is contained already. | 
| T | getFromQueue()Gets the next Object from begin of the queue
 and removes it also from the existence check. | 
| abstract java.lang.String | key(T obj)Should be defined by usage. | 
| void | reset(boolean preventRequeue)Resets the queue, cleans, also for prevent requeue. | 
java.util.List<T> queue
java.util.Map<java.lang.String,T> idxinQueue
boolean bPreventRequeue
public QueuePrc(boolean preventRequeue)
preventRequeue - true means, later the same obj cannot be  added again in the queue.
   If addToQueue(int, Object) is called with the same Object is prevented,
   till #reset() is called.public abstract java.lang.String key(T obj)
obj - public T addToQueue(int pos, T obj)
key(Object).
 This should be unique to identify the same instance.pos - 0 on begin, -1 on endobj - to addpublic T getFromQueue()
public void reset(boolean preventRequeue)
preventRequeue -