public final class GridNearTxFinishFuture<K,V> extends GridCacheCompoundIdentityFuture<IgniteInternalTx> implements GridCacheFuture<IgniteInternalTx>, NearTxFinishFuture
Modifier and Type | Field and Description |
---|---|
static String |
ALL_PARTITION_OWNERS_LEFT_GRID_MSG
All owners left grid message.
|
protected static IgniteLogger |
msgLog
Logger.
|
Constructor and Description |
---|
GridNearTxFinishFuture(GridCacheSharedContext<K,V> cctx,
GridNearTxLocal tx,
boolean commit) |
Modifier and Type | Method and Description |
---|---|
boolean |
commit() |
void |
finish(boolean commit,
boolean clearThreadMap,
boolean onTimeout) |
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as not trackable.
|
boolean |
onDone(IgniteInternalTx tx0,
Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
void |
onNodeStop(IgniteCheckedException e) |
void |
onResult(UUID nodeId,
GridDhtTxFinishResponse res) |
void |
onResult(UUID nodeId,
GridNearTxFinishResponse res) |
String |
toString() |
boolean |
trackable() |
GridNearTxLocal |
tx() |
duration, onDone, startTime
add, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, logDebug, logError, markInitialized, processFailure
chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, reset, result
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
duration, startTime
cancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result
public static final String ALL_PARTITION_OWNERS_LEFT_GRID_MSG
protected static IgniteLogger msgLog
public GridNearTxFinishFuture(GridCacheSharedContext<K,V> cctx, GridNearTxLocal tx, boolean commit)
cctx
- Context.tx
- Transaction.commit
- Commit flag.public boolean commit()
commit
in interface NearTxFinishFuture
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 GridNearTxLocal tx()
tx
in interface NearTxFinishFuture
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 void finish(boolean commit, boolean clearThreadMap, boolean onTimeout)
finish
in interface NearTxFinishFuture
commit
- Commit flag.clearThreadMap
- If true
removes GridNearTxLocal
from thread map.onTimeout
- If true
called from timeout handler.public void onNodeStop(IgniteCheckedException e)
onNodeStop
in interface NearTxFinishFuture
e
- Error.public String toString()
toString
in class GridCompoundIdentityFuture<IgniteInternalTx>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021