public class TransactionAwareQueueStore extends Object implements Queue
QueueStoreCacheListener will be notified| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
TransactionAwareQueueStore(QueueStore queue,
TransactionContextProvider transactionContextProvider,
MuleContext muleContext) |
| 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.
|
String |
getName()
Gets the name of the object
|
boolean |
offer(Serializable item,
long timeout) |
Serializable |
peek() |
Serializable |
poll(long timeout) |
void |
put(Serializable item)
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) |
public TransactionAwareQueueStore(QueueStore queue, TransactionContextProvider transactionContextProvider, MuleContext muleContext)
public void put(Serializable item) throws InterruptedException, ObjectStoreException
Queueput in interface QueueInterruptedExceptionObjectStoreExceptionpublic void clear()
throws InterruptedException
Queueclear in interface QueueInterruptedExceptionpublic boolean offer(Serializable item, long timeout) throws InterruptedException, ObjectStoreException
offer in interface QueueInterruptedExceptionObjectStoreExceptionpublic Serializable take() throws InterruptedException
Queuetake in interface QueueInterruptedExceptionpublic void untake(Serializable item) throws InterruptedException, ObjectStoreException
untake in interface QueueInterruptedExceptionObjectStoreExceptionpublic Serializable poll(long timeout) throws InterruptedException
poll in interface QueueInterruptedExceptionpublic Serializable peek() throws InterruptedException
peek in interface QueueInterruptedExceptionpublic void dispose()
throws MuleException,
InterruptedException
Queuedispose in interface QueueMuleExceptionInterruptedExceptionpublic int size()
Queuepublic String getName()
NamedObjectgetName in interface NamedObjectCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.