public interface Queue
Queue
TODOModifier and Type | Method and Description |
---|---|
String |
getName() |
boolean |
offer(Object o,
long timeout) |
Object |
peek() |
Object |
poll(long timeout) |
void |
put(Object o)
Puts a new object in this queue and wait if necessary.
|
int |
size()
Returns the number of elements in this queue.
|
Object |
take()
Blocks and retrieves an object from this queue.
|
int size()
void put(Object o) throws InterruptedException
o
- the object to putInterruptedException
Object take() throws InterruptedException
InterruptedException
Object peek() throws InterruptedException
InterruptedException
Object poll(long timeout) throws InterruptedException
InterruptedException
boolean offer(Object o, long timeout) throws InterruptedException
InterruptedException
String getName()
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.