public abstract class GridNearTxPrepareFutureAdapter extends GridCompoundFuture<GridNearTxPrepareResponse,IgniteInternalTx> implements GridCacheMvccFuture<IgniteInternalTx>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
protected GridCacheSharedContext<?,?> |
cctx
Context.
|
protected Throwable |
err
Error.
|
protected static AtomicReferenceFieldUpdater<GridNearTxPrepareFutureAdapter,Throwable> |
ERR_UPD
Error updater.
|
protected IgniteUuid |
futId
Future ID.
|
protected static IgniteLogger |
log
Logger.
|
protected static AtomicReference<IgniteLogger> |
logRef
Logger reference.
|
protected static IgniteLogger |
msgLog
Logger.
|
protected boolean |
trackable
Trackable flag.
|
protected GridNearTxLocal |
tx
Transaction.
|
protected GridDhtTxMapping |
txMapping
Full information about transaction nodes mapping.
|
sync| Constructor and Description |
|---|
GridNearTxPrepareFutureAdapter(GridCacheSharedContext cctx,
GridNearTxLocal tx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkOnePhase()
Checks if mapped transaction can be committed on one phase.
|
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
protected void |
onPrepareResponse(GridDistributedTxMapping m,
GridNearTxPrepareResponse res) |
abstract void |
onResult(UUID nodeId,
GridNearTxPrepareResponse res) |
abstract void |
prepare()
Prepares transaction.
|
boolean |
trackable() |
IgniteInternalTx |
tx() |
GridCacheVersion |
version() |
add, apply, cancel, clear, future, futures, futuresCount, hasPending, ignoreFailure, initialized, markInitialized, toStringchain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, result, startTime, tryAcquireShared, tryReleaseSharedacquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonOwnerChangedonNodeLeftcancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimeprotected static final AtomicReference<IgniteLogger> logRef
protected static final AtomicReferenceFieldUpdater<GridNearTxPrepareFutureAdapter,Throwable> ERR_UPD
protected static IgniteLogger log
protected static IgniteLogger msgLog
protected GridCacheSharedContext<?,?> cctx
@GridToStringInclude protected IgniteUuid futId
@GridToStringInclude protected GridNearTxLocal tx
@GridToStringExclude protected volatile Throwable err
protected boolean trackable
protected GridDhtTxMapping txMapping
public GridNearTxPrepareFutureAdapter(GridCacheSharedContext cctx, GridNearTxLocal tx)
cctx - Context.tx - Transaction.public IgniteUuid futureId()
futureId in interface GridCacheFuture<IgniteInternalTx>public GridCacheVersion version()
version in interface GridCacheMvccFuture<IgniteInternalTx>public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<IgniteInternalTx>public boolean trackable()
trackable in interface GridCacheFuture<IgniteInternalTx>True if future should be tracked.public IgniteInternalTx tx()
public abstract void prepare()
public abstract void onResult(UUID nodeId, GridNearTxPrepareResponse res)
nodeId - Sender.res - Result.protected final void checkOnePhase()
protected final void onPrepareResponse(GridDistributedTxMapping m, GridNearTxPrepareResponse res)
m - Mapping.res - Response.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016