public class GridCachePessimisticCheckCommittedTxFuture<K,V> extends GridCompoundIdentityFuture<GridCacheCommittedTxInfo<K,V>> implements GridCacheFuture<GridCacheCommittedTxInfo<K,V>>
AbstractQueuedSynchronizer.ConditionObjectctx| Constructor and Description |
|---|
GridCachePessimisticCheckCommittedTxFuture(GridCacheContext<K,V> cctx,
GridCacheTxEx<K,V> tx,
UUID failedNodeId) |
| Modifier and Type | Method and Description |
|---|---|
GridUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
Collection<? extends GridNode> |
nodes() |
boolean |
onDone(GridCacheCommittedTxInfo<K,V> res,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
void |
onResult(UUID nodeId,
GridCachePessimisticCheckCommittedTxResponse<K,V> res) |
void |
prepare()
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 GridCachePessimisticCheckCommittedTxFuture(GridCacheContext<K,V> cctx, GridCacheTxEx<K,V> tx, UUID failedNodeId)
cctx - Context.tx - Transaction.failedNodeId - ID of failed node started transaction.public void prepare()
public void onResult(UUID nodeId, GridCachePessimisticCheckCommittedTxResponse<K,V> res)
nodeId - Node ID.res - Response.public GridUuid futureId()
futureId in interface GridCacheFuture<GridCacheCommittedTxInfo<K,V>>public GridCacheVersion version()
version in interface GridCacheFuture<GridCacheCommittedTxInfo<K,V>>public Collection<? extends GridNode> nodes()
nodes in interface GridCacheFuture<GridCacheCommittedTxInfo<K,V>>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<GridCacheCommittedTxInfo<K,V>>nodeId - Left node ID.True if future cared about this node.public boolean trackable()
trackable in interface GridCacheFuture<GridCacheCommittedTxInfo<K,V>>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<GridCacheCommittedTxInfo<K,V>>public boolean onDone(@Nullable GridCacheCommittedTxInfo<K,V> res, @Nullable Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<GridCacheCommittedTxInfo<K,V>>res - Optional result.err - Optional error.True if result was set by this call.public String toString()
toString in class GridCompoundIdentityFuture<GridCacheCommittedTxInfo<K,V>>Copyright © 2014. All rights reserved.