public final class GridDhtTxFinishFuture<K,V> extends GridCompoundIdentityFuture<IgniteInternalTx> implements GridCacheFuture<IgniteInternalTx>
AbstractQueuedSynchronizer.ConditionObject
sync
Constructor and Description |
---|
GridDhtTxFinishFuture(GridCacheSharedContext<K,V> cctx,
GridDhtTxLocalAdapter tx,
boolean commit) |
Modifier and Type | Method and Description |
---|---|
void |
finish(boolean commit)
Initializes future.
|
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
boolean |
onDone(IgniteInternalTx tx,
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 |
rollbackOnError(Throwable e) |
String |
toString() |
boolean |
trackable() |
GridDhtTxLocalAdapter |
tx() |
add, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, markInitialized
chain, chain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, result, startTime, tryAcquireShared, tryReleaseShared
acquire, 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, tryRelease
getExclusiveOwnerThread, setExclusiveOwnerThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cancel, chain, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTime
public GridDhtTxFinishFuture(GridCacheSharedContext<K,V> cctx, GridDhtTxLocalAdapter tx, boolean commit)
cctx
- Context.tx
- Transaction.commit
- Commit flag.public GridDhtTxLocalAdapter tx()
public IgniteUuid futureId()
futureId
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 rollbackOnError(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(boolean commit)
commit
- Commit flag.public String toString()
toString
in class GridCompoundIdentityFuture<IgniteInternalTx>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017