public class GridNearTxSelectForUpdateFuture extends GridCacheCompoundIdentityFuture<Long> implements GridCacheVersionedFuture<Long>
| Constructor and Description |
|---|
GridNearTxSelectForUpdateFuture(GridCacheContext<?,?> cctx,
GridNearTxLocal tx,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
GridCacheContext<?,?> |
cache() |
IgniteUuid |
futureId() |
void |
init(AffinityTopologyVersion topVer,
Collection<ClusterNode> nodes)
Initialize this future for distributed execution.
|
void |
initLocal()
Initialize this future for local execution.
|
protected void |
logDebug(IgniteLogger log,
String msg) |
protected void |
logError(IgniteLogger log,
String msg,
Throwable e) |
void |
markNotTrackable()
Marks this future as non-trackable.
|
boolean |
onDone(Long res,
Throwable err,
boolean cancelled) |
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
boolean |
onOwnerChanged(GridCacheEntryEx entry,
GridCacheMvccCandidate owner) |
void |
onResult(UUID nodeId,
Long cnt,
boolean removeMapping,
Throwable err)
Process result of query execution on given
|
protected boolean |
processFailure(Throwable err,
IgniteInternalFuture<Long> fut)
Processes error thrown by some of the inner futures.
|
String |
toString() |
boolean |
trackable() |
GridCacheVersion |
version() |
duration, startTimeadd, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, markInitializedchain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitduration, startTimecancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic GridNearTxSelectForUpdateFuture(GridCacheContext<?,?> cctx, GridNearTxLocal tx, long timeout)
cctx - Cache context.tx - Transaction.timeout - Timeout.public GridCacheContext<?,?> cache()
public void onResult(UUID nodeId, Long cnt, boolean removeMapping, @Nullable Throwable err)
nodeId - Node id.cnt - Total rows counter on given node.removeMapping - Whether transaction mapping should be removed for node.err - Error.protected boolean processFailure(Throwable err, IgniteInternalFuture<Long> fut)
processFailure in class GridCompoundFuture<Long,Long>err - Thrown exception.fut - Failed future.True if this error should be ignored.public boolean onDone(@Nullable
Long res,
@Nullable
Throwable err,
boolean cancelled)
onDone in class GridCacheCompoundIdentityFuture<Long>res - Result.err - Error.cancelled - True if future is being cancelled.True if result was set by this call.public GridCacheVersion version()
version in interface GridCacheVersionedFuture<Long>public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
onOwnerChanged in interface GridCacheVersionedFuture<Long>entry - Entry which received new owner.owner - Owner.True if future cares about this entry.public IgniteUuid futureId()
futureId in interface GridCacheFuture<Long>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<Long>nodeId - Left node ID.True if future cared about this node.public boolean trackable()
trackable in interface GridCacheFuture<Long>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<Long>protected void logError(IgniteLogger log, String msg, Throwable e)
logError in class GridCompoundFuture<Long,Long>log - IgniteLogger.msg - ShortMessage.e - Exception.protected void logDebug(IgniteLogger log, String msg)
logDebug in class GridCompoundFuture<Long,Long>log - IgniteLogger.msg - ShortMessage.public String toString()
toString in class GridCompoundIdentityFuture<Long>public void init(AffinityTopologyVersion topVer, Collection<ClusterNode> nodes)
topVer - Topology version.nodes - Nodes to run query on.public void initLocal()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019