use of com.hazelcast.transaction.impl.xa.operations.PutRemoteTransactionOperation in project hazelcast by hazelcast.
the class XATransaction method putTransactionInfoRemote.
private void putTransactionInfoRemote() throws ExecutionException, InterruptedException {
PutRemoteTransactionOperation operation = new PutRemoteTransactionOperation(transactionLog.getRecordList(), txnId, xid, txOwnerUuid, timeoutMillis, startTime);
OperationService operationService = nodeEngine.getOperationService();
IPartitionService partitionService = nodeEngine.getPartitionService();
int partitionId = partitionService.getPartitionId(xid);
InternalCompletableFuture<Object> future = operationService.invokeOnPartition(SERVICE_NAME, operation, partitionId);
future.get();
}
Aggregations