public interface Queue
extends org.mule.runtime.api.meta.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) |
int size()
void put(Serializable object) throws InterruptedException, org.mule.runtime.api.store.ObjectStoreException
InterruptedExceptionorg.mule.runtime.api.store.ObjectStoreExceptionSerializable take() throws InterruptedException
InterruptedExceptionvoid untake(Serializable item) throws InterruptedException, org.mule.runtime.api.store.ObjectStoreException
InterruptedExceptionorg.mule.runtime.api.store.ObjectStoreExceptionSerializable peek() throws InterruptedException
InterruptedExceptionSerializable poll(long timeout) throws InterruptedException
InterruptedExceptionboolean offer(Serializable object, long timeout) throws InterruptedException, org.mule.runtime.api.store.ObjectStoreException
InterruptedExceptionorg.mule.runtime.api.store.ObjectStoreExceptionvoid clear()
throws InterruptedException
InterruptedExceptionvoid dispose()
throws org.mule.runtime.api.exception.MuleException,
InterruptedException
org.mule.runtime.api.exception.MuleExceptionInterruptedExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.