public class TransactionAwareQueueStore extends Object implements Queue
QueueStoreCacheListener will be notified| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
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() |
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, org.mule.runtime.api.store.ObjectStoreException
Queueput in interface QueueInterruptedExceptionorg.mule.runtime.api.store.ObjectStoreExceptionpublic void clear()
throws InterruptedException
Queueclear in interface QueueInterruptedExceptionpublic boolean offer(Serializable item, long timeout) throws InterruptedException, org.mule.runtime.api.store.ObjectStoreException
offer in interface QueueInterruptedExceptionorg.mule.runtime.api.store.ObjectStoreExceptionpublic Serializable take() throws InterruptedException
Queuetake in interface QueueInterruptedExceptionpublic void untake(Serializable item) throws InterruptedException, org.mule.runtime.api.store.ObjectStoreException
untake in interface QueueInterruptedExceptionorg.mule.runtime.api.store.ObjectStoreExceptionpublic Serializable poll(long timeout) throws InterruptedException
poll in interface QueueInterruptedExceptionpublic Serializable peek() throws InterruptedException
peek in interface QueueInterruptedExceptionpublic void dispose()
throws org.mule.runtime.api.exception.MuleException,
InterruptedException
Queuedispose in interface Queueorg.mule.runtime.api.exception.MuleExceptionInterruptedExceptionpublic int size()
Queuepublic String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.