public interface XATransactionalCodecTemplate
Modifier and Type | Method and Description |
---|---|
void |
clearRemote(Xid xid) |
Object |
collectTransactions() |
void |
commit(String transactionId,
boolean onePhase) |
Object |
create(Xid xid,
long timeout) |
void |
finalize(Xid xid,
boolean isCommit) |
void |
prepare(String transactionId) |
void |
rollback(String transactionId) |
void clearRemote(Xid xid)
xid
- Java XA transaction id as defined in interface javax.transaction.xa.Xid.Object collectTransactions()
void finalize(Xid xid, boolean isCommit)
xid
- Java XA transaction id as defined in interface javax.transaction.xa.Xid.isCommit
- If true, the transaction is committed else transaction is rolled back.void commit(String transactionId, boolean onePhase)
transactionId
- The internal Hazelcast transaction id.onePhase
- If true, the prepare is also done.Object create(Xid xid, long timeout)
xid
- Java XA transaction id as defined in interface javax.transaction.xa.Xid.timeout
- The timeout in seconds for XA operations such as prepare, commit, rollback.void prepare(String transactionId)
transactionId
- The id of the transaction to prepare.void rollback(String transactionId)
transactionId
- The id of the transaction to rollback.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.