public class GridNearPessimisticTxPrepareFuture extends GridNearTxPrepareFutureAdapter
AbstractQueuedSynchronizer.ConditionObjectcctx, err, ERR_UPD, futId, log, logRef, trackable, tx, txMappingfuts| Constructor and Description |
|---|
GridNearPessimisticTxPrepareFuture(GridCacheSharedContext cctx,
GridNearTxLocal tx) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
ignoreFailure(Throwable err)
Checks if this compound future should ignore this particular exception.
|
boolean |
onDone(IgniteInternalTx res,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
boolean |
onOwnerChanged(GridCacheEntryEx entry,
GridCacheMvccCandidate owner) |
void |
onResult(UUID nodeId,
GridNearTxPrepareResponse res) |
void |
prepare()
Prepares transaction.
|
String |
toString() |
checkOnePhase, futureId, markNotTrackable, onPrepareResponse, trackable, versionadd, apply, cancel, futures, futuresSize, hasPending, initialized, markInitializedchain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, onCancelled, 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, waitcancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimepublic GridNearPessimisticTxPrepareFuture(GridCacheSharedContext cctx, GridNearTxLocal tx)
cctx - Context.tx - Transaction.protected boolean ignoreFailure(Throwable err)
ignoreFailure in class GridCompoundFuture<GridNearTxPrepareResponse,IgniteInternalTx>err - Exception to check.True if this error should be ignored.public boolean onNodeLeft(UUID nodeId)
nodeId - Left node ID.True if future cared about this node.public void onResult(UUID nodeId, GridNearTxPrepareResponse res)
onResult in class GridNearTxPrepareFutureAdapternodeId - Sender.res - Result.public void prepare()
prepare in class GridNearTxPrepareFutureAdapterpublic boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
entry - Entry which received new owner.owner - Owner.True if future cares about this entry.public boolean onDone(@Nullable IgniteInternalTx res, @Nullable Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<IgniteInternalTx>res - Optional result.err - Optional error.True if result was set by this call.public String toString()
toString in class GridCompoundFuture<GridNearTxPrepareResponse,IgniteInternalTx>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016