public abstract class GridNearOptimisticTxPrepareFutureAdapter extends GridNearTxPrepareFutureAdapter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GridNearOptimisticTxPrepareFutureAdapter.KeyLockFuture
Keys lock future.
|
| Modifier and Type | Field and Description |
|---|---|
protected GridNearOptimisticTxPrepareFutureAdapter.KeyLockFuture |
keyLockFut |
protected org.apache.ignite.internal.processors.cache.distributed.near.GridNearOptimisticTxPrepareFutureAdapter.MvccSnapshotFutureExt |
mvccVerFut |
| Modifier | Constructor and Description |
|---|---|
protected |
GridNearOptimisticTxPrepareFutureAdapter(GridCacheSharedContext cctx,
GridNearTxLocal tx) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
errorOrTimeoutOnTopologyVersion(IgniteCheckedException e,
boolean timedOut) |
void |
onNearTxLocalTimeout()
Called when related
GridNearTxLocal is completed asynchronously on timeout, |
void |
prepare()
Prepares transaction.
|
protected abstract void |
prepare0(boolean remap,
boolean topLocked) |
protected void |
prepareOnTopology(boolean remap,
Runnable c) |
protected GridDhtTopologyFuture |
topologyReadLock()
Acquires topology read lock.
|
protected void |
topologyReadUnlock()
Releases topology read lock.
|
futureId, markNotTrackable, onResult, trackable, tx, versionduration, onDone, startTimeadd, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, logDebug, logError, markInitialized, processFailure, toStringchain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonOwnerChangedduration, onNodeLeft, startTimecancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result@GridToStringExclude protected GridNearOptimisticTxPrepareFutureAdapter.KeyLockFuture keyLockFut
@GridToStringExclude protected org.apache.ignite.internal.processors.cache.distributed.near.GridNearOptimisticTxPrepareFutureAdapter.MvccSnapshotFutureExt mvccVerFut
protected GridNearOptimisticTxPrepareFutureAdapter(GridCacheSharedContext cctx, GridNearTxLocal tx)
cctx - Context.tx - Transaction.public final void onNearTxLocalTimeout()
GridNearTxLocal is completed asynchronously on timeout,onNearTxLocalTimeout in class GridNearTxPrepareFutureAdapterpublic final void prepare()
prepare in class GridNearTxPrepareFutureAdapterprotected final GridDhtTopologyFuture topologyReadLock()
protected final void topologyReadUnlock()
protected final void prepareOnTopology(boolean remap,
@Nullable
Runnable c)
remap - Remap flag.c - Optional closure to run after map.protected abstract void prepare0(boolean remap,
boolean topLocked)
remap - Remap flag.topLocked - True if thread already acquired lock preventing topology change.protected boolean errorOrTimeoutOnTopologyVersion(IgniteCheckedException e, boolean timedOut)
e - Exception.timedOut - True if timed out.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019