public final class GridDhtTxPrepareFuture<K,V> extends GridCompoundIdentityFuture<IgniteInternalTx<K,V>> implements GridCacheMvccFuture<K,V,IgniteInternalTx<K,V>>
AbstractQueuedSynchronizer.ConditionObjectctx| Constructor and Description |
|---|
GridDhtTxPrepareFuture()
Empty constructor required for
Externalizable. |
GridDhtTxPrepareFuture(GridCacheSharedContext<K,V> cctx,
GridDhtTxLocalAdapter<K,V> tx,
IgniteUuid nearMiniId,
Map<IgniteTxKey<K>,GridCacheVersion> dhtVerMap,
boolean last,
boolean retVal,
Collection<UUID> lastBackups,
IgniteInClosure<GridNearTxPrepareResponse<K,V>> 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<K,V> 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<K,V> entry,
GridCacheMvccCandidate<K> owner) |
void |
onResult(UUID nodeId,
GridDhtTxPrepareResponse<K,V> res) |
void |
prepare(Iterable<IgniteTxEntry<K,V>> reads,
Iterable<IgniteTxEntry<K,V>> 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, checkValid, concurrentNotify, concurrentNotify, duration, endTime, error, get, get, get, get0, isCancelled, isDone, isFailed, isValid, listenAsync, onCancelled, onDone, onDone, onDone, readExternal, result, startTime, stopListenAsync, syncNotify, syncNotify, tryAcquireShared, tryReleaseShared, writeExternalacquire, 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, concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, isDone, listenAsync, startTime, stopListenAsync, syncNotify, syncNotifypublic GridDhtTxPrepareFuture()
Externalizable.public GridDhtTxPrepareFuture(GridCacheSharedContext<K,V> cctx, GridDhtTxLocalAdapter<K,V> tx, IgniteUuid nearMiniId, Map<IgniteTxKey<K>,GridCacheVersion> dhtVerMap, boolean last, boolean retVal, Collection<UUID> lastBackups, IgniteInClosure<GridNearTxPrepareResponse<K,V>> 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<K,V>>public IgniteUuid nearMiniId()
public GridCacheVersion version()
version in interface GridCacheFuture<IgniteInternalTx<K,V>>public Collection<? extends ClusterNode> nodes()
nodes in interface GridCacheFuture<IgniteInternalTx<K,V>>public boolean onOwnerChanged(GridCacheEntryEx<K,V> entry, GridCacheMvccCandidate<K> owner)
onOwnerChanged in interface GridCacheMvccFuture<K,V,IgniteInternalTx<K,V>>entry - Entry which received new owner.owner - Owner.True if future cares about this entry.public boolean trackable()
trackable in interface GridCacheFuture<IgniteInternalTx<K,V>>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<IgniteInternalTx<K,V>>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<IgniteInternalTx<K,V>>nodeId - Left node ID.True if future cared about this node.public void onError(Throwable t)
t - Error.public void onResult(UUID nodeId, GridDhtTxPrepareResponse<K,V> res)
nodeId - Sender.res - Result.public boolean onDone(IgniteInternalTx<K,V> tx0, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<IgniteInternalTx<K,V>>tx0 - Optional result.err - Optional error.True if result was set by this call.public void complete()
public void prepare(Iterable<IgniteTxEntry<K,V>> reads, Iterable<IgniteTxEntry<K,V>> writes, Map<UUID,Collection<UUID>> txNodes)
reads - Read entries.writes - Write entries.txNodes - Transaction nodes mapping.public String toString()
toString in class GridCompoundIdentityFuture<IgniteInternalTx<K,V>>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015