public interface Queue extends NamedObject
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Discards all the elements in the queue
|
void |
dispose()
Disposes this queue by releasing it's storage and associated memory and
storage.
|
boolean |
offer(Serializable object,
long timeout) |
Serializable |
peek() |
Serializable |
poll(long timeout) |
void |
put(Serializable object)
Puts a new object in this queue and wait if necessary.
|
int |
size()
Returns the number of elements in this queue.
|
Serializable |
take()
Blocks and retrieves an object from this queue.
|
void |
untake(Serializable item) |
getNameint size()
void put(Serializable object) throws InterruptedException, ObjectStoreException
Serializable take() throws InterruptedException
InterruptedExceptionvoid untake(Serializable item) throws InterruptedException, ObjectStoreException
Serializable peek() throws InterruptedException
InterruptedExceptionSerializable poll(long timeout) throws InterruptedException
InterruptedExceptionboolean offer(Serializable object, long timeout) throws InterruptedException, ObjectStoreException
void clear()
throws InterruptedException
InterruptedExceptionvoid dispose()
throws MuleException,
InterruptedException
MuleExceptionInterruptedExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.