/** {@inheritDoc} */ @Override public void start0() throws GridException { txSerEnabled = cctx.config().isTxSerializableEnabled(); dataCenterId = cctx.kernalContext().config().getDataCenterId(); last = new GridCacheVersion(0, 0, order.get(), 0, dataCenterId); cctx.gridEvents().addLocalEventListener(discoLsnr, EVT_NODE_METRICS_UPDATED); }
A.ensure(txSize >= 0, "transaction size cannot be negative"); if (!ctx.config().isTxSerializableEnabled() && isolation == SERIALIZABLE) throw new IllegalArgumentException("SERIALIZABLE isolation level is disabled (to enable change " + "'txSerializableEnabled' configuration property)");
if (cctx.config().isTxSerializableEnabled()) decrementStartVersionCount(tx);
if (tx.enforceSerializable() && cctx.config().isTxSerializableEnabled()) { for (Iterator<GridCacheTxEx<K, V>> it = committedQ.iterator(); it.hasNext();) { GridCacheTxEx<K, V> committedTx = it.next(); if (cctx.config().isTxSerializableEnabled() && tx.optimistic() && tx.enforceSerializable()) { Set<K> readSet = tx.readSet(); Set<K> writeSet = tx.writeSet();
if (cctx.config().isTxSerializableEnabled()) decrementStartVersionCount(tx);
if (cctx.config().isTxSerializableEnabled()) { AtomicInt next = new AtomicInt(1);
if (cctx.config().isTxSerializableEnabled()) decrementStartVersionCount(tx); if (cctx.config().isTxSerializableEnabled() && tx.enforceSerializable() && !isSafeToForget(tx)) committedQ.add(tx);
ttl = cfg.getDefaultTimeToLive(); txBatchUpdate = cfg.isBatchUpdateOnCommit(); txSerEnabled = cfg.isTxSerializableEnabled(); writeBehindBatchSize = cfg.getWriteBehindBatchSize(); writeBehindEnabled = cfg.isWriteBehindEnabled();
ctx.config().getDeploymentMode()); if (!cc.isTxSerializableEnabled() && cc.getDefaultTxIsolation() == SERIALIZABLE) U.warn(log, "Serializable transactions are disabled while default transaction isolation is SERIALIZABLE " +
cfg.cloner(compactClass(ccfg.getCloner())); cfg.transactionManagerLookupClassName(ccfg.getTransactionManagerLookupClassName()); cfg.txSerializableEnabled(ccfg.isTxSerializableEnabled()); cfg.offsetHeapMaxMemory(ccfg.getOffHeapMaxMemory()); cfg.maxQueryIteratorCount(ccfg.getMaximumQueryIteratorCount());
ttl = cc.getDefaultTimeToLive(); txBatchUpdate = cc.isBatchUpdateOnCommit(); txSerEnabled = cc.isTxSerializableEnabled(); writeBehindBatchSize = cc.getWriteBehindBatchSize(); writeBehindEnabled = cc.isWriteBehindEnabled();