org.mule.util.queue
Class QueueTypeTransactionContextAdapter<T extends QueueTransactionContext>
java.lang.Object
org.mule.util.queue.QueueTypeTransactionContextAdapter<T>
- Type Parameters:
T - type of the transactional context
- All Implemented Interfaces:
- QueueTransactionContext
public class QueueTypeTransactionContextAdapter<T extends QueueTransactionContext>
- extends Object
- implements QueueTransactionContext
Once a queue operations it's executed this operation creates the correct QueueTransactionContext
based on the queue type, persistent or transient.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueueTypeTransactionContextAdapter
public QueueTypeTransactionContextAdapter(QueueTransactionContextFactory<T> queueTransactionContextFactory)
offer
public boolean offer(QueueStore queue,
Serializable item,
long offerTimeout)
throws InterruptedException
- Specified by:
offer in interface QueueTransactionContext
- Throws:
InterruptedException
untake
public void untake(QueueStore queue,
Serializable item)
throws InterruptedException
- Specified by:
untake in interface QueueTransactionContext
- Throws:
InterruptedException
clear
public void clear(QueueStore queue)
throws InterruptedException
- Specified by:
clear in interface QueueTransactionContext
- Throws:
InterruptedException
poll
public Serializable poll(QueueStore queue,
long pollTimeout)
throws InterruptedException
- Specified by:
poll in interface QueueTransactionContext
- Throws:
InterruptedException
peek
public Serializable peek(QueueStore queue)
throws InterruptedException
- Specified by:
peek in interface QueueTransactionContext
- Throws:
InterruptedException
size
public int size(QueueStore queue)
- Specified by:
size in interface QueueTransactionContext
getTransactionContext
public T getTransactionContext()
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.