|
eXo Kernel :: Component :: Common Service 2.5.0-Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.threadpool.impl.Queue
public class Queue
| Constructor Summary | |
|---|---|
Queue()
|
|
| Method Summary | |
|---|---|
Object |
get()
Get an object from the front of the queue. |
Object |
get(long msecs)
Get an object from the front of the queue. |
void |
put(Object obj)
Put an object on the end of the queue. |
boolean |
put(Object obj,
long msecs)
Put an object on the end of the queue. |
void |
setMaxQueueSize(int newValue)
Set the maximum queue size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Queue()
| Method Detail |
|---|
public void put(Object obj)
throws InterruptedException
obj - the object to put at end of queue
InterruptedException
public boolean put(Object obj,
long msecs)
throws InterruptedException
obj - the object to put at end of queuemsecs - If this method has to wait for the size of the queue to shrink
to less than maxQueueSize, it will stop waiting after it has
waited this many milliseconds.
InterruptedException
public Object get()
throws InterruptedException
InterruptedException
public Object get(long msecs)
throws InterruptedException
msecs - The maximum number of milliseconds that this method should
wait before giving up.
InterruptedExceptionpublic void setMaxQueueSize(int newValue)
|
eXo Kernel :: Component :: Common Service 2.5.0-Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||