use of com.hazelcast.client.spi.ClientTransactionManagerService in project hazelcast by hazelcast.
the class XAResourceProxy method getGroupName.
private String getGroupName() {
ClientContext context = getContext();
ClientTransactionManagerService transactionManager = context.getTransactionManager();
return transactionManager.getGroupName();
}
use of com.hazelcast.client.spi.ClientTransactionManagerService in project hazelcast by hazelcast.
the class XAResourceProxy method createTransactionContext.
private TransactionContext createTransactionContext(Xid xid) {
ClientContext clientContext = getContext();
ClientTransactionManagerService transactionManager = clientContext.getTransactionManager();
TransactionContext context = transactionManager.newXATransactionContext(xid, timeoutInSeconds.get());
getTransaction(context).begin();
return context;
}
Aggregations