public class XaQueueTypeTransactionContextAdapter extends AbstractXaTransactionContext implements XaQueueTransactionContext, QueueTransactionContextFactory<XaQueueTransactionContext>
Constructor and Description |
---|
XaQueueTypeTransactionContextAdapter(XaTxQueueTransactionJournal xaTxQueueTransactionJournal,
QueueProvider queueProvider,
Xid xid) |
Modifier and Type | Method and Description |
---|---|
void |
clear(QueueStore queue) |
XaQueueTransactionContext |
createPersistentTransactionContext() |
XaQueueTransactionContext |
createTransientTransactionContext() |
void |
doCommit()
Commits the current transaction context operations
|
void |
doPrepare()
Two phase commit prepare phase
|
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) |
finalCleanUp, notifyFinish, toString
public XaQueueTypeTransactionContextAdapter(XaTxQueueTransactionJournal xaTxQueueTransactionJournal, QueueProvider queueProvider, Xid xid)
public XaQueueTransactionContext createPersistentTransactionContext()
createPersistentTransactionContext
in interface QueueTransactionContextFactory<XaQueueTransactionContext>
public XaQueueTransactionContext createTransientTransactionContext()
createTransientTransactionContext
in interface QueueTransactionContextFactory<XaQueueTransactionContext>
public void doCommit() throws ResourceManagerException
XaQueueTransactionContext
doCommit
in interface XaQueueTransactionContext
doCommit
in class AbstractTransactionContext
ResourceManagerException
public void doRollback() throws ResourceManagerException
XaQueueTransactionContext
doRollback
in interface XaQueueTransactionContext
doRollback
in class AbstractTransactionContext
ResourceManagerException
public void doPrepare() throws ResourceManagerException
AbstractXaTransactionContext
doPrepare
in interface XaQueueTransactionContext
doPrepare
in class AbstractXaTransactionContext
ResourceManagerException
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
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.