public class GridNearOptimisticTxPrepareFuture extends GridNearOptimisticTxPrepareFutureAdapter
GridNearOptimisticTxPrepareFutureAdapter.KeyLockFutureAbstractQueuedSynchronizer.ConditionObjectcctx, err, ERR_UPD, futId, log, logRef, msgLog, trackable, tx, txMappingsync| Constructor and Description |
|---|
GridNearOptimisticTxPrepareFuture(GridCacheSharedContext cctx,
GridNearTxLocal tx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onDone(IgniteInternalTx t,
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) |
protected void |
prepare0(boolean remap,
boolean topLocked)
Initializes future.
|
Set<IgniteTxKey> |
requestedKeys() |
String |
toString() |
prepare, prepareOnTopology, topologyReadLock, topologyReadUnlockcheckOnePhase, futureId, markNotTrackable, onPrepareResponse, trackable, tx, versionadd, apply, cancel, clear, future, futures, futuresCount, hasPending, ignoreFailure, initialized, markInitializedchain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, 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 GridNearOptimisticTxPrepareFuture(GridCacheSharedContext cctx, GridNearTxLocal tx)
cctx - Context.tx - Transaction.public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
entry - Entry which received new owner.owner - Owner.True if future cares about this entry.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 Set<IgniteTxKey> requestedKeys()
public boolean onDone(IgniteInternalTx t, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<IgniteInternalTx>t - Optional result.err - Optional error.True if result was set by this call.protected void prepare0(boolean remap,
boolean topLocked)
prepare0 in class GridNearOptimisticTxPrepareFutureAdapterremap - Remap flag.topLocked - True if thread already acquired lock preventing topology change.public String toString()
toString in class GridCompoundFuture<GridNearTxPrepareResponse,IgniteInternalTx>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016