BlockingInterceptor blockingInterceptor = new BlockingInterceptor(distInterceptorBarrier, PutKeyValueCommand.class, false);
cache0.addInterceptorBefore(blockingInterceptor, NonTxConcurrentDistributionInterceptor.class);
for (int i = 0; i < NUM_KEYS; i++) {
// Try to put a key/value from cache0 with cache1 the primary owner
final MagicKey key = new MagicKey("key" + i, cache1);
Future<Object> future = fork(new Callable<Object>() {
@Override
public Object call() throws Exception {
return conditional ? cache0.putIfAbsent(key, "v") : cache0.put(key, "v");
}