Search in sources :

Example 1 with PutRemoteTransactionOperation

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();
}
Also used : IPartitionService(com.hazelcast.spi.partition.IPartitionService) OperationService(com.hazelcast.spi.OperationService) PutRemoteTransactionOperation(com.hazelcast.transaction.impl.xa.operations.PutRemoteTransactionOperation)

Aggregations

OperationService (com.hazelcast.spi.OperationService)1 IPartitionService (com.hazelcast.spi.partition.IPartitionService)1 PutRemoteTransactionOperation (com.hazelcast.transaction.impl.xa.operations.PutRemoteTransactionOperation)1