Package com.hazelcast.transaction
Interface HazelcastXAResource
-
- All Superinterfaces:
DistributedObject
,javax.transaction.xa.XAResource
public interface HazelcastXAResource extends javax.transaction.xa.XAResource, DistributedObject
Interface for providing Hazelcast as an XAResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransactionContext
getTransactionContext()
Returns the TransactionContext associated with the current thread.-
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getDestroyContextForTenant, getName, getPartitionKey, getServiceName
-
-
-
-
Method Detail
-
getTransactionContext
@Nonnull TransactionContext getTransactionContext()
Returns the TransactionContext associated with the current thread.- Returns:
- TransactionContext associated with the current thread
- Throws:
java.lang.IllegalStateException
- if no context found
-
-