Search in sources :

Example 1 with GridCompoundReadRepairFuture

use of org.apache.ignite.internal.processors.cache.distributed.near.consistency.GridCompoundReadRepairFuture in project ignite by apache.

the class GridCacheAdapter method repairAsync.

/**
 * Checks the given {@code keys} and repairs entries across the topology if needed.
 *
 * @param keys Keys.
 * @param opCtx Operation context.
 * @param skipVals Skip values flag.
 * @return Compound future that represents a result of repair action.
 */
private IgniteInternalFuture<Void> repairAsync(Collection<KeyCacheObject> keys, final CacheOperationContext opCtx, boolean skipVals) {
    GridCompoundReadRepairFuture fut = new GridCompoundReadRepairFuture();
    for (KeyCacheObject key : keys) fut.add(repairAsync(key, opCtx, skipVals));
    fut.markInitialized();
    return fut;
}
Also used : GridCompoundReadRepairFuture(org.apache.ignite.internal.processors.cache.distributed.near.consistency.GridCompoundReadRepairFuture)

Aggregations

GridCompoundReadRepairFuture (org.apache.ignite.internal.processors.cache.distributed.near.consistency.GridCompoundReadRepairFuture)1