com.hazelcast.transaction

## Interface HazelcastXAResource

- All Superinterfaces:
    DistributedObject, XAResource
  All Known Implementing Classes:
    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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `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, 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 © 2020. All rights reserved.