Package com.hazelcast.transaction
Interface HazelcastXAResource
- All Superinterfaces:
DistributedObject
,XAResource
Interface for providing Hazelcast as an XAResource
-
Field Summary
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
-
Method Summary
Modifier and TypeMethodDescriptionReturns the TransactionContext associated with the current thread.Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getDestroyContextForTenant, getName, getPartitionKey, getServiceName
Methods inherited from interface javax.transaction.xa.XAResource
commit, end, forget, getTransactionTimeout, isSameRM, prepare, recover, rollback, setTransactionTimeout, start
-
Method Details
-
getTransactionContext
Returns the TransactionContext associated with the current thread.- Returns:
- TransactionContext associated with the current thread
- Throws:
IllegalStateException
- if no context found
-