|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.util.PriorityQueueAbstract<E>
tigase.util.PriorityQueue<E>
E - public class PriorityQueue<E>
Created: Feb 9, 2010 11:12:56 AM
| Field Summary |
|---|
| Fields inherited from class tigase.util.PriorityQueueAbstract |
|---|
NONPRIORITY_QUEUE |
| Constructor Summary | |
|---|---|
protected |
PriorityQueue(int maxPriority,
int maxSize)
Constructs ... |
| Method Summary | |
|---|---|
boolean |
offer(E element,
int priority)
Method description |
void |
put(E element,
int priority)
Method description |
void |
setMaxSize(int maxSize)
Method description |
int[] |
size()
Method description |
E |
take()
Method description |
int |
totalSize()
Method description |
| Methods inherited from class tigase.util.PriorityQueueAbstract |
|---|
getPriorityQueue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PriorityQueue(int maxPriority,
int maxSize)
maxPriority - maxSize - | Method Detail |
|---|
public boolean offer(E element,
int priority)
offer in class PriorityQueueAbstract<E>element - priority -
public void put(E element,
int priority)
throws java.lang.InterruptedException
put in class PriorityQueueAbstract<E>element - priority -
java.lang.InterruptedExceptionpublic void setMaxSize(int maxSize)
setMaxSize in class PriorityQueueAbstract<E>maxSize - public int[] size()
size in class PriorityQueueAbstract<E>
public E take()
throws java.lang.InterruptedException
take in class PriorityQueueAbstract<E>java.lang.InterruptedExceptionpublic int totalSize()
totalSize in class PriorityQueueAbstract<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||