@Override public GridCacheVersion apply(V o) { return ctx.versions().next(opCtx.dataCenterId()); } });
@Override public GridCacheVersion apply(K k) { return ctx.versions().next(opCtx.dataCenterId()); } });
@Override public GridCacheDrInfo apply(EntryProcessor o) { return new GridCacheDrInfo(o, ctx.versions().next(opCtx.dataCenterId())); } });
@Override public GridCacheDrInfo apply(V o) { return new GridCacheDrInfo(ctx.toCacheObject(o), ctx.versions().next(opCtx.dataCenterId())); } });
/** {@inheritDoc} */ @Override public GatewayProtectedCacheProxy<K, V> withDataCenterId(byte dataCenterId) { CacheOperationGate opGate = onEnter(); try { Byte prevDataCenterId = opCtx.dataCenterId(); if (prevDataCenterId != null && dataCenterId == prevDataCenterId) return this; return new GatewayProtectedCacheProxy<>(delegate, opCtx.setDataCenterId(dataCenterId), lock); } finally { onLeave(opGate); } }
Byte dcId = opCtx.dataCenterId();
final Byte dataCenterId = opCtx != null ? opCtx.dataCenterId() : null;
assert map != null || invokeMap != null; dataCenterId = opCtx.dataCenterId();
assert drMap == null : drMap; dataCenterId = opCtx.dataCenterId();
@Override public GridCacheVersion apply(K k) { return ctx.versions().next(opCtx.dataCenterId()); } });
@Override public GridCacheVersion apply(V o) { return ctx.versions().next(opCtx.dataCenterId()); } });
@Override public GridCacheDrInfo apply(EntryProcessor o) { return new GridCacheDrInfo(o, ctx.versions().next(opCtx.dataCenterId())); } });
/** {@inheritDoc} */ @Override public GatewayProtectedCacheProxy<K, V> withDataCenterId(byte dataCenterId) { CacheOperationGate opGate = onEnter(); try { Byte prevDataCenterId = opCtx.dataCenterId(); if (prevDataCenterId != null && dataCenterId == prevDataCenterId) return this; return new GatewayProtectedCacheProxy<>(delegate, opCtx.setDataCenterId(dataCenterId), lock); } finally { onLeave(opGate); } }
@Override public GridCacheDrInfo apply(V o) { return new GridCacheDrInfo(ctx.toCacheObject(o), ctx.versions().next(opCtx.dataCenterId())); } });
Byte dcId = opCtx.dataCenterId();
final Byte dataCenterId = opCtx != null ? opCtx.dataCenterId() : null;
assert map != null || invokeMap != null; dataCenterId = opCtx.dataCenterId();
assert drMap == null : drMap; dataCenterId = opCtx.dataCenterId();