Class ClusteredTransactionId
java.lang.Object
com.swiftmq.impl.queue.standard.cluster.ClusteredTransactionId
-
Constructor Summary
ConstructorsConstructorDescriptionClusteredTransactionId(SwiftletContext ctx, boolean messageBasedDispatch) ClusteredTransactionId(SwiftletContext ctx, AbstractQueue baseQueue, Object baseTx, QueueImpl destination) -
Method Summary
Modifier and TypeMethodDescriptionlongcommit()voidcommit(AsyncCompletionCallback callback) longcommit(XidImpl xid) CompositeStoreTransactionQueueImplbooleanvoidvoidprepare(XidImpl xid) voidputMessage(String queueName, MessageImpl message) voidputMessage(MessageImpl message) voidrollback(boolean b) voidrollback(boolean b, AsyncCompletionCallback callback) voidrollback(XidImpl xid, boolean b) voidsetCompositeStoreTransaction(CompositeStoreTransaction ct) toString()voidunlockQueue(boolean markAsyncActive) void
-
Constructor Details
-
ClusteredTransactionId
-
ClusteredTransactionId
public ClusteredTransactionId(SwiftletContext ctx, AbstractQueue baseQueue, Object baseTx, QueueImpl destination)
-
-
Method Details
-
isMessageBasedDispatch
public boolean isMessageBasedDispatch() -
putMessage
- Throws:
Exception
-
putMessage
- Throws:
Exception
-
getDestination
public QueueImpl getDestination() -
getBaseTx
-
lockQueue
public void lockQueue() -
unlockQueue
public void unlockQueue(boolean markAsyncActive) -
unmarkAsyncActive
public void unmarkAsyncActive() -
setCompositeStoreTransaction
public void setCompositeStoreTransaction(CompositeStoreTransaction ct) -
getCompositeStoreTransaction
public CompositeStoreTransaction getCompositeStoreTransaction() -
prepare
public void prepare(XidImpl xid) throws QueueException - Throws:
QueueException
-
commit
public long commit(XidImpl xid) throws QueueException - Throws:
QueueException
-
commit
public long commit() throws QueueException- Throws:
QueueException
-
commit
public void commit(AsyncCompletionCallback callback) -
rollback
public void rollback(XidImpl xid, boolean b) throws QueueException - Throws:
QueueException
-
rollback
public void rollback(boolean b) throws QueueException - Throws:
QueueException
-
rollback
public void rollback(boolean b, AsyncCompletionCallback callback) -
toString
-