public abstract class GridNearTxPrepareFutureAdapter extends GridCompoundIdentityFuture<IgniteInternalTx> implements GridCacheFuture<IgniteInternalTx>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
protected GridCacheSharedContext<?,?> |
cctx
Context.
|
protected AtomicReference<Throwable> |
err
Error.
|
protected IgniteUuid |
futId
Future ID.
|
protected static IgniteLogger |
log
Logger.
|
protected static AtomicReference<IgniteLogger> |
logRef
Logger reference.
|
protected boolean |
trackable
Trackable flag.
|
protected GridNearTxLocal |
tx
Transaction.
|
protected GridDhtTxMapping |
txMapping
Full information about transaction nodes mapping.
|
| 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() |
GridCacheVersion |
version() |
toStringadd, addAll, addAll, cancel, futures, hasPending, ignoreChildFailures, initialized, markInitialized, pending, reducer, reducerchain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, 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, waitnodes, onNodeLeftcancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimeprotected static final AtomicReference<IgniteLogger> logRef
protected static IgniteLogger log
protected GridCacheSharedContext<?,?> cctx
protected IgniteUuid futId
@GridToStringInclude protected GridNearTxLocal tx
@GridToStringExclude protected AtomicReference<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 GridCacheFuture<IgniteInternalTx>public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<IgniteInternalTx>public boolean trackable()
trackable in interface GridCacheFuture<IgniteInternalTx>True if future should be tracked.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.4.0 Release Date : September 24 2015