org.mule.util.queue
Interface QueueTransactionContext
- All Known Subinterfaces:
- LocalQueueTransactionContext, XaQueueTransactionContext
- All Known Implementing Classes:
- LocalTxQueueTransactionContext, PersistentQueueTransactionContext, PersistentXaTransactionContext, QueueTypeTransactionContextAdapter, TransientQueueTransactionContext, TransientXaTransactionAdapter, XaQueueTypeTransactionContextAdapter
public interface QueueTransactionContext
Contract for a transactional context for queue operations.
offer
boolean offer(QueueStore queue,
Serializable item,
long offerTimeout)
throws InterruptedException
- Throws:
InterruptedException
untake
void untake(QueueStore queue,
Serializable item)
throws InterruptedException
- Throws:
InterruptedException
clear
void clear(QueueStore queue)
throws InterruptedException
- Throws:
InterruptedException
poll
Serializable poll(QueueStore queue,
long pollTimeout)
throws InterruptedException
- Throws:
InterruptedException
peek
Serializable peek(QueueStore queue)
throws InterruptedException
- Throws:
InterruptedException
size
int size(QueueStore queue)
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.