/** * * @param req Request. * @param nodeId Remote node ID. * @param fut Result future. * @throws IgniteCheckedException if failed to send. */ private void sendRequest(GridCacheMessage req, UUID nodeId, MiniFuture fut) throws IgniteCheckedException { IgniteInternalFuture<?> txSync = cctx.tm().awaitFinishAckAsync(nodeId, tx.threadId()); if (txSync == null || txSync.isDone()) cctx.io().send(nodeId, req, QUERY_POOL); // Process query requests in query pool. else txSync.listen(new CI1<IgniteInternalFuture<?>>() { @Override public void apply(IgniteInternalFuture<?> f) { try { cctx.io().send(nodeId, req, cctx.ioPolicy()); } catch (IgniteCheckedException e) { fut.onResult(null, e); } } }); }
/** * @param req Request. * @param nodeId Remote node ID * @throws IgniteCheckedException if failed to send. */ private void sendRequest(GridCacheMessage req, UUID nodeId) throws IgniteCheckedException { IgniteInternalFuture<?> txSync = cctx.tm().awaitFinishAckAsync(nodeId, tx.threadId()); if (txSync == null || txSync.isDone()) cctx.io().send(nodeId, req, cctx.ioPolicy()); else txSync.listen(new CI1<IgniteInternalFuture<?>>() { @Override public void apply(IgniteInternalFuture<?> future) { try { cctx.io().send(nodeId, req, cctx.ioPolicy()); } catch (IgniteCheckedException e) { GridNearTxEnlistFuture.this.onDone(e); } } }); }
/** * * @param req Request. * @param nodeId Remote node ID * @throws IgniteCheckedException if failed to send. */ private void sendRequest(GridCacheMessage req, UUID nodeId) throws IgniteCheckedException { IgniteInternalFuture<?> txSync = cctx.tm().awaitFinishAckAsync(nodeId, tx.threadId()); if (txSync == null || txSync.isDone()) cctx.io().send(nodeId, req, cctx.ioPolicy()); else txSync.listen(new CI1<IgniteInternalFuture<?>>() { @Override public void apply(IgniteInternalFuture<?> future) { try { cctx.io().send(nodeId, req, cctx.ioPolicy()); } catch (IgniteCheckedException e) { GridNearTxQueryResultsEnlistFuture.this.onDone(e); } } }); }
txSync = cctx.tm().awaitFinishAckAsync(node.id(), tx.threadId());
txSync = cctx.tm().awaitFinishAckAsync(node.id(), tx.threadId());
/** * @param req Request. * @param nodeId Remote node ID * @throws IgniteCheckedException if failed to send. */ private void sendRequest(GridCacheMessage req, UUID nodeId) throws IgniteCheckedException { IgniteInternalFuture<?> txSync = cctx.tm().awaitFinishAckAsync(nodeId, tx.threadId()); if (txSync == null || txSync.isDone()) cctx.io().send(nodeId, req, cctx.ioPolicy()); else txSync.listen(new CI1<IgniteInternalFuture<?>>() { @Override public void apply(IgniteInternalFuture<?> future) { try { cctx.io().send(nodeId, req, cctx.ioPolicy()); } catch (IgniteCheckedException e) { GridNearTxEnlistFuture.this.onDone(e); } } }); }
/** * * @param req Request. * @param nodeId Remote node ID * @throws IgniteCheckedException if failed to send. */ private void sendRequest(GridCacheMessage req, UUID nodeId) throws IgniteCheckedException { IgniteInternalFuture<?> txSync = cctx.tm().awaitFinishAckAsync(nodeId, tx.threadId()); if (txSync == null || txSync.isDone()) cctx.io().send(nodeId, req, cctx.ioPolicy()); else txSync.listen(new CI1<IgniteInternalFuture<?>>() { @Override public void apply(IgniteInternalFuture<?> future) { try { cctx.io().send(nodeId, req, cctx.ioPolicy()); } catch (IgniteCheckedException e) { GridNearTxQueryResultsEnlistFuture.this.onDone(e); } } }); }
/** * * @param req Request. * @param nodeId Remote node ID. * @param fut Result future. * @throws IgniteCheckedException if failed to send. */ private void sendRequest(GridCacheMessage req, UUID nodeId, MiniFuture fut) throws IgniteCheckedException { IgniteInternalFuture<?> txSync = cctx.tm().awaitFinishAckAsync(nodeId, tx.threadId()); if (txSync == null || txSync.isDone()) cctx.io().send(nodeId, req, cctx.ioPolicy()); else txSync.listen(new CI1<IgniteInternalFuture<?>>() { @Override public void apply(IgniteInternalFuture<?> f) { try { cctx.io().send(nodeId, req, cctx.ioPolicy()); } catch (IgniteCheckedException e) { fut.onResult(null, e); } } }); }
txSync = cctx.tm().awaitFinishAckAsync(node.id(), tx.threadId());
txSync = cctx.tm().awaitFinishAckAsync(node.id(), tx.threadId());