public final class GridDhtTxPrepareFuture<K,V> extends GridCompoundIdentityFuture<IgniteInternalTx> implements GridCacheMvccFuture<IgniteInternalTx>
AbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
GridDhtTxPrepareFuture(GridCacheSharedContext cctx,
GridDhtTxLocalAdapter tx,
IgniteUuid nearMiniId,
Map<IgniteTxKey,GridCacheVersion> dhtVerMap,
boolean last,
boolean retVal,
Collection<UUID> lastBackups,
IgniteInClosure<GridNearTxPrepareResponse> completeCb) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Completes this future.
|
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
IgniteUuid |
nearMiniId() |
Collection<? extends ClusterNode> |
nodes() |
boolean |
onDone(IgniteInternalTx tx0,
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(Iterable<IgniteTxEntry> reads,
Iterable<IgniteTxEntry> writes,
Map<UUID,Collection<UUID>> txNodes)
Initializes future.
|
String |
toString() |
boolean |
trackable() |
GridCacheVersion |
version() |
add, addAll, addAll, cancel, futures, hasPending, ignoreChildFailures, initialized, markInitialized, pending, reducer, reducerchain, duration, endTime, error, get, get, get, get0, 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, setExclusiveOwnerThreadpublic GridDhtTxPrepareFuture(GridCacheSharedContext cctx, GridDhtTxLocalAdapter tx, IgniteUuid nearMiniId, Map<IgniteTxKey,GridCacheVersion> dhtVerMap, boolean last, boolean retVal, Collection<UUID> lastBackups, IgniteInClosure<GridNearTxPrepareResponse> completeCb)
cctx - Context.tx - Transaction.nearMiniId - Near mini future id.dhtVerMap - DHT versions map.last - True if this is last prepare operation for node.lastBackups - IDs of backup nodes receiving last prepare request during this prepare.public IgniteUuid futureId()
futureId in interface GridCacheFuture<IgniteInternalTx>public IgniteUuid nearMiniId()
public GridCacheVersion version()
version in interface GridCacheFuture<IgniteInternalTx>public Collection<? extends ClusterNode> nodes()
nodes in interface GridCacheFuture<IgniteInternalTx>public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
onOwnerChanged in interface GridCacheMvccFuture<IgniteInternalTx>entry - Entry which received new owner.owner - Owner.True if future cares about this entry.public boolean trackable()
trackable in interface GridCacheFuture<IgniteInternalTx>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<IgniteInternalTx>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<IgniteInternalTx>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(IgniteInternalTx tx0, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<IgniteInternalTx>tx0 - Optional result.err - Optional error.True if result was set by this call.public void complete()
public void prepare(Iterable<IgniteTxEntry> reads, Iterable<IgniteTxEntry> writes, Map<UUID,Collection<UUID>> txNodes)
reads - Read entries.writes - Write entries.txNodes - Transaction nodes mapping.public String toString()
toString in class GridCompoundIdentityFuture<IgniteInternalTx>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015