public class GridNearOptimisticTxPrepareFuture extends GridNearTxPrepareFutureAdapter implements GridCacheMvccFuture<IgniteInternalTx>
AbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
GridNearOptimisticTxPrepareFuture(GridCacheSharedContext cctx,
GridNearTxLocal tx) |
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends ClusterNode> |
nodes() |
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) |
void |
prepare()
Prepares transaction.
|
String |
toString() |
checkOnePhase, futureId, markNotTrackable, onPrepareResponse, trackable, versionadd, addAll, addAll, cancel, futures, hasPending, ignoreChildFailures, initialized, markInitialized, pending, reducer, reducerchain, duration, endTime, error, get, get, get, get0, getUninterruptibly, 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, setExclusiveOwnerThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfutureId, markNotTrackable, trackable, versioncancel, 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)
onOwnerChanged in interface GridCacheMvccFuture<IgniteInternalTx>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>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<IgniteInternalTx>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 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.public void prepare()
prepare in class GridNearTxPrepareFutureAdapterpublic String toString()
toString in class GridCompoundIdentityFuture<IgniteInternalTx>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015