Class ClusteredTransactionId
java.lang.Object
com.swiftmq.impl.queue.standard.cluster.ClusteredTransactionId
-
Constructor Summary
ConstructorDescriptionClusteredTransactionId
(SwiftletContext ctx, boolean messageBasedDispatch) ClusteredTransactionId
(SwiftletContext ctx, AbstractQueue baseQueue, Object baseTx, QueueImpl destination) -
Method Summary
Modifier and TypeMethodDescriptionlong
commit()
void
commit
(AsyncCompletionCallback callback) long
commit
(XidImpl xid) CompositeStoreTransaction
QueueImpl
boolean
void
void
prepare
(XidImpl xid) void
putMessage
(String queueName, MessageImpl message) void
putMessage
(MessageImpl message) void
rollback
(boolean b) void
rollback
(boolean b, AsyncCompletionCallback callback) void
rollback
(XidImpl xid, boolean b) void
setCompositeStoreTransaction
(CompositeStoreTransaction ct) toString()
void
unlockQueue
(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
-