public class GridNearPessimisticTxPrepareFuture extends GridNearTxPrepareFutureAdapter
| 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() |
futureId, markNotTrackable, trackable, tx, versionduration, onDone, startTimeadd, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, initialized, logDebug, logError, markInitialized, processFailurechain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitduration, startTimecancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic 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. 2.4.0 Release Date : March 5 2018