public final class GridNearTxFinishFuture<K,V> extends GridCompoundIdentityFuture<IgniteInternalTx> implements GridCacheFuture<IgniteInternalTx>
AbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Field and Description |
|---|---|
static IgniteProductVersion |
FINISH_NEAR_ONE_PHASE_SINCE |
| Constructor and Description |
|---|
GridNearTxFinishFuture(GridCacheSharedContext<K,V> cctx,
GridNearTxLocal tx,
boolean commit) |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as not trackable.
|
Collection<? extends ClusterNode> |
nodes() |
boolean |
onDone(IgniteInternalTx tx0,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
void |
onResult(UUID nodeId,
GridDhtTxFinishResponse res) |
void |
onResult(UUID nodeId,
GridNearTxFinishResponse 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, 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, waitcancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimepublic static final IgniteProductVersion FINISH_NEAR_ONE_PHASE_SINCE
public GridNearTxFinishFuture(GridCacheSharedContext<K,V> cctx, GridNearTxLocal 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 onResult(UUID nodeId, GridNearTxFinishResponse res)
nodeId - Sender.res - Result.public void onResult(UUID nodeId, GridDhtTxFinishResponse res)
nodeId - Sender.res - Result.public boolean onDone(IgniteInternalTx tx0, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<IgniteInternalTx>tx0 - Optional result.err - Optional error.True if result was set by this call.public String toString()
toString in class GridCompoundIdentityFuture<IgniteInternalTx>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015