/** * @param nodeId Node ID. * @param res Response. */ public void onResult(UUID nodeId, GridCachePessimisticCheckCommittedTxResponse<K, V> res) { if (!isDone()) { for (GridFuture<GridCacheCommittedTxInfo<K, V>> fut : pending()) { if (isMini(fut)) { MiniFuture f = (MiniFuture) fut; if (f.futureId().equals(res.miniId())) { assert f.nodeId().equals(nodeId); f.onResult(res); break; } } } } }
/** @param res Result callback. */ private void onResult(GridCachePessimisticCheckCommittedTxResponse<K, V> res) { onDone(res.committedTxInfo()); }