|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.util.queue.TransactionAwareQueueStore
public class TransactionAwareQueueStore
Queue implementation that executes operations:
- If there is no transaction context then executes the operation directly to the queue.
- If there is a transaction context then executes the operation through the transaction context.
- During queue dispose a QueueStoreCacheListener will be notified
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
TransactionAwareQueueStore(QueueStore queue,
TransactionContextProvider transactionContextProvider,
MuleContext muleContext)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public TransactionAwareQueueStore(QueueStore queue,
TransactionContextProvider transactionContextProvider,
MuleContext muleContext)
| Method Detail |
|---|
public void put(Serializable item)
throws InterruptedException,
ObjectStoreException
Queue
put in interface QueueInterruptedException
ObjectStoreException
public void clear()
throws InterruptedException
Queue
clear in interface QueueInterruptedException
public boolean offer(Serializable item,
long timeout)
throws InterruptedException,
ObjectStoreException
offer in interface QueueInterruptedException
ObjectStoreException
public Serializable take()
throws InterruptedException
Queue
take in interface QueueInterruptedException
public void untake(Serializable item)
throws InterruptedException,
ObjectStoreException
untake in interface QueueInterruptedException
ObjectStoreException
public Serializable poll(long timeout)
throws InterruptedException
poll in interface QueueInterruptedException
public Serializable peek()
throws InterruptedException
peek in interface QueueInterruptedException
public void dispose()
throws MuleException,
InterruptedException
Queue
dispose in interface QueueMuleException
InterruptedExceptionpublic int size()
Queue
size in interface Queuepublic String getName()
NamedObject
getName in interface NamedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||