com.hazelcast.transaction
Interface HazelcastXAResource

All Superinterfaces:
DistributedObject, XAResource
All Known Implementing Classes:
XAResourceImpl, XAResourceProxy

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
 TransactionContext getTransactionContext()
          Returns the TransactionContext associated with the current thread.
 
Methods inherited from interface javax.transaction.xa.XAResource
commit, end, forget, getTransactionTimeout, isSameRM, prepare, recover, rollback, setTransactionTimeout, start
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getName, getPartitionKey, getServiceName
 

Method Detail

getTransactionContext

TransactionContext getTransactionContext()
Returns the TransactionContext associated with the current thread.

Returns:
TransactionContext associated with the current thread
Throws:
IllegalStateException - if no context found


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.