public final class GridNearTxPrepareFuture<K,V> extends GridCompoundIdentityFuture<IgniteInternalTx<K,V>> implements GridCacheMvccFuture<K,V,IgniteInternalTx<K,V>>
AbstractQueuedSynchronizer.ConditionObjectctx| Constructor and Description |
|---|
GridNearTxPrepareFuture()
Empty constructor required for
Externalizable. |
GridNearTxPrepareFuture(GridCacheSharedContext<K,V> cctx,
GridNearTxLocal<K,V> tx) |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
Collection<? extends ClusterNode> |
nodes() |
boolean |
onDone(IgniteInternalTx<K,V> t,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
boolean |
onOwnerChanged(GridCacheEntryEx<K,V> entry,
GridCacheMvccCandidate<K> owner) |
void |
onResult(UUID nodeId,
GridNearTxPrepareResponse<K,V> res) |
void |
prepare()
Waits for topology exchange future to be ready and then prepares user transaction.
|
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 GridNearTxPrepareFuture()
Externalizable.public GridNearTxPrepareFuture(GridCacheSharedContext<K,V> cctx, GridNearTxLocal<K,V> tx)
cctx - Context.tx - Transaction.public IgniteUuid futureId()
futureId in interface GridCacheFuture<IgniteInternalTx<K,V>>public GridCacheVersion version()
version 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 Collection<? extends ClusterNode> nodes()
nodes in interface GridCacheFuture<IgniteInternalTx<K,V>>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 onResult(UUID nodeId, GridNearTxPrepareResponse<K,V> res)
nodeId - Sender.res - Result.public boolean onDone(IgniteInternalTx<K,V> t, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<IgniteInternalTx<K,V>>t - Optional result.err - Optional error.True if result was set by this call.public void prepare()
public String toString()
toString in class GridCompoundIdentityFuture<IgniteInternalTx<K,V>>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015