Package com.hazelcast.transaction
Interface HazelcastXAResource
- All Superinterfaces:
DistributedObject
,XAResource
public interface HazelcastXAResource extends XAResource, DistributedObject
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 Type Method Description TransactionContext
getTransactionContext()
Returns the TransactionContext associated with the current thread.Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, 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
-