public interface Queue
Queue TODO| Modifier 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 putInterruptedExceptionObject take() throws InterruptedException
InterruptedExceptionObject peek() throws InterruptedException
InterruptedExceptionObject poll(long timeout) throws InterruptedException
InterruptedExceptionboolean offer(Object o, long timeout) throws InterruptedException
InterruptedExceptionString getName()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.