public final class GridDhtTxFinishFuture<K,V> extends GridCompoundIdentityFuture<IgniteInternalTx> implements GridCacheFuture<IgniteInternalTx>
AbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
GridDhtTxFinishFuture(GridCacheSharedContext<K,V> cctx,
GridDhtTxLocalAdapter tx,
boolean commit) |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Initializes future.
|
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
Collection<? extends ClusterNode> |
nodes() |
boolean |
onDone(IgniteInternalTx tx,
Throwable err)
Callback to notify that future is finished.
|
void |
onError(Throwable e) |
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
void |
onResult(UUID nodeId,
GridDhtTxFinishResponse res) |
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 GridDhtTxFinishFuture(GridCacheSharedContext<K,V> cctx, GridDhtTxLocalAdapter tx, boolean commit)
cctx - Context.tx - Transaction.commit - Commit flag.public IgniteUuid futureId()
futureId in interface GridCacheFuture<IgniteInternalTx>public GridCacheVersion version()
version in interface GridCacheFuture<IgniteInternalTx>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 boolean trackable()
trackable in interface GridCacheFuture<IgniteInternalTx>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<IgniteInternalTx>public void onError(Throwable e)
e - Error.public void onResult(UUID nodeId, GridDhtTxFinishResponse res)
nodeId - Sender.res - Result.public boolean onDone(IgniteInternalTx tx, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<IgniteInternalTx>tx - Optional result.err - Optional error.True if result was set by this call.public void finish()
public String toString()
toString in class GridCompoundIdentityFuture<IgniteInternalTx>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015