public class PersistentXaTransactionContext extends Object implements XaQueueTransactionContext
XaQueueTransactionContext
for persistent queues using XA transactionsConstructor and Description |
---|
PersistentXaTransactionContext(XaTxQueueTransactionJournal simpleTxQueueTransactionJournal,
QueueProvider queueProvider,
Xid xid) |
Modifier and Type | Method and Description |
---|---|
void |
clear(QueueStore queue) |
void |
doCommit()
Commits the current transaction context operations
|
void |
doPrepare()
Prepares the current transaction context for a commit
|
void |
doRollback()
Rollbacks the current transaction context operations
|
boolean |
offer(QueueStore queue,
Serializable item,
long offerTimeout) |
Serializable |
peek(QueueStore queue) |
Serializable |
poll(QueueStore queue,
long pollTimeout) |
int |
size(QueueStore queue) |
void |
untake(QueueStore queue,
Serializable item) |
public PersistentXaTransactionContext(XaTxQueueTransactionJournal simpleTxQueueTransactionJournal, QueueProvider queueProvider, Xid xid)
public boolean offer(QueueStore queue, Serializable item, long offerTimeout) throws InterruptedException
offer
in interface QueueTransactionContext
InterruptedException
public void untake(QueueStore queue, Serializable item) throws InterruptedException
untake
in interface QueueTransactionContext
InterruptedException
public void clear(QueueStore queue) throws InterruptedException
clear
in interface QueueTransactionContext
InterruptedException
public Serializable poll(QueueStore queue, long pollTimeout) throws InterruptedException
poll
in interface QueueTransactionContext
InterruptedException
public Serializable peek(QueueStore queue) throws InterruptedException
peek
in interface QueueTransactionContext
InterruptedException
public int size(QueueStore queue)
size
in interface QueueTransactionContext
public void doCommit() throws ResourceManagerException
XaQueueTransactionContext
doCommit
in interface XaQueueTransactionContext
ResourceManagerException
public void doRollback() throws ResourceManagerException
XaQueueTransactionContext
doRollback
in interface XaQueueTransactionContext
ResourceManagerException
public void doPrepare() throws ResourceManagerException
XaQueueTransactionContext
doPrepare
in interface XaQueueTransactionContext
ResourceManagerException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.