public final class GridDhtTxPrepareFuture extends GridCompoundFuture<IgniteInternalTx,GridNearTxPrepareResponse> implements GridCacheMvccFuture<GridNearTxPrepareResponse>
AbstractQueuedSynchronizer.ConditionObjectsync| Constructor and Description |
|---|
GridDhtTxPrepareFuture(GridCacheSharedContext cctx,
GridDhtTxLocalAdapter tx,
long timeout,
IgniteUuid nearMiniId,
Map<IgniteTxKey,GridCacheVersion> dhtVerMap,
boolean last,
boolean retVal) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Completes this future.
|
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
IgniteUuid |
nearMiniId() |
boolean |
onDone(GridNearTxPrepareResponse res0,
Throwable err)
Callback to notify that future is finished.
|
void |
onError(Throwable t) |
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
boolean |
onOwnerChanged(GridCacheEntryEx entry,
GridCacheMvccCandidate owner) |
void |
onResult(UUID nodeId,
GridDhtTxPrepareResponse res) |
void |
prepare(Collection<IgniteTxEntry> reads,
Collection<IgniteTxEntry> writes,
Map<UUID,Collection<UUID>> txNodes)
Initializes future.
|
String |
toString() |
boolean |
trackable() |
GridDhtTxLocalAdapter |
tx() |
GridCacheVersion |
version() |
add, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, markInitializedchain, chain, 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, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimepublic GridDhtTxPrepareFuture(GridCacheSharedContext cctx, GridDhtTxLocalAdapter tx, long timeout, IgniteUuid nearMiniId, Map<IgniteTxKey,GridCacheVersion> dhtVerMap, boolean last, boolean retVal)
cctx - Context.tx - Transaction.timeout - Timeout.nearMiniId - Near mini future id.dhtVerMap - DHT versions map.last - True if this is last prepare operation for node.retVal - Return value flag.public IgniteUuid futureId()
futureId in interface GridCacheFuture<GridNearTxPrepareResponse>public IgniteUuid nearMiniId()
public GridCacheVersion version()
version in interface GridCacheMvccFuture<GridNearTxPrepareResponse>public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
onOwnerChanged in interface GridCacheMvccFuture<GridNearTxPrepareResponse>entry - Entry which received new owner.owner - Owner.True if future cares about this entry.public boolean trackable()
trackable in interface GridCacheFuture<GridNearTxPrepareResponse>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<GridNearTxPrepareResponse>public GridDhtTxLocalAdapter tx()
public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<GridNearTxPrepareResponse>nodeId - Left node ID.True if future cared about this node.public void onError(Throwable t)
t - Error.public void onResult(UUID nodeId, GridDhtTxPrepareResponse res)
nodeId - Sender.res - Result.public boolean onDone(GridNearTxPrepareResponse res0, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<GridNearTxPrepareResponse>res0 - Optional result.err - Optional error.True if result was set by this call.public void complete()
public void prepare(Collection<IgniteTxEntry> reads, Collection<IgniteTxEntry> writes, Map<UUID,Collection<UUID>> txNodes)
reads - Read entries.writes - Write entries.txNodes - Transaction nodes mapping.public String toString()
toString in class GridCompoundFuture<IgniteInternalTx,GridNearTxPrepareResponse>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017