use of com.hazelcast.transaction.impl.Transaction in project hazelcast by hazelcast.
the class XAResourceImpl method prepare.
@Override
public int prepare(Xid xid) throws XAException {
List<TransactionContext> contexts = xidContextMap.get(xid);
if (contexts == null) {
throw new XAException("There is no TransactionContexts for the given xid: " + xid);
}
for (TransactionContext context : contexts) {
Transaction transaction = getTransaction(context);
transaction.prepare();
}
return XA_OK;
}
Aggregations