public abstract class GridNearTxAbstractEnlistFuture<T> extends GridCacheCompoundIdentityFuture<T> implements GridCacheVersionedFuture<T>
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheContext<?,?> |
cctx
Cache context.
|
protected IgniteUuid |
futId
Mvcc future id.
|
protected GridCacheVersion |
lockVer
Lock version.
|
protected IgniteLogger |
log
Logger.
|
protected MvccSnapshot |
mvccSnapshot
MVCC snapshot.
|
protected long |
threadId
Initiated thread id.
|
protected long |
timeout |
protected org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxAbstractEnlistFuture.LockTimeoutObject |
timeoutObj
Timeout object.
|
protected AffinityTopologyVersion |
topVer |
protected GridNearTxLocal |
tx
Transaction.
|
| Constructor and Description |
|---|
GridNearTxAbstractEnlistFuture(GridCacheContext<?,?> cctx,
GridNearTxLocal tx,
long timeout,
@Nullable IgniteReducer<T,T> rdc) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCompleted() |
protected void |
clearLocalFuture(GridDhtTxAbstractEnlistFuture fut) |
IgniteUuid |
futureId() |
void |
init() |
protected void |
logDebug(IgniteLogger log,
String msg) |
protected void |
logError(IgniteLogger log,
String msg,
Throwable e) |
protected abstract void |
map(boolean topLocked)
Start iterating the data rows and form batches.
|
void |
markNotTrackable()
Marks this future as non-trackable.
|
boolean |
onCancelled()
Callback to notify that future is cancelled.
|
boolean |
onDone(T res,
@Nullable Throwable err,
boolean cancelled) |
boolean |
onOwnerChanged(GridCacheEntryEx entry,
GridCacheMvccCandidate owner) |
abstract Set<UUID> |
pendingResponseNodes() |
protected long |
remainingTime()
Gets remaining allowed time.
|
protected @NotNull IgniteTxTimeoutCheckedException |
timeoutException() |
boolean |
trackable() |
protected void |
updateLocalFuture(GridDhtTxAbstractEnlistFuture fut) |
protected void |
updateMappings(ClusterNode node) |
GridCacheVersion |
version() |
duration, startTimetoStringadd, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, markInitialized, processFailurechain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onDone, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitduration, onNodeLeft, startTimecancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result@GridToStringExclude protected final GridCacheContext<?,?> cctx
protected final GridNearTxLocal tx
protected AffinityTopologyVersion topVer
protected MvccSnapshot mvccSnapshot
@GridToStringExclude protected final IgniteLogger log
protected long timeout
protected final long threadId
protected final IgniteUuid futId
protected final GridCacheVersion lockVer
@GridToStringExclude protected org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxAbstractEnlistFuture.LockTimeoutObject timeoutObj
public GridNearTxAbstractEnlistFuture(GridCacheContext<?,?> cctx, GridNearTxLocal tx, long timeout, @Nullable @Nullable IgniteReducer<T,T> rdc)
cctx - Cache context.tx - Transaction.timeout - Timeout.rdc - Compound future reducer.public void init()
protected void updateMappings(ClusterNode node) throws IgniteCheckedException
node - Primary node.IgniteCheckedException - if future is already completed.protected void updateLocalFuture(GridDhtTxAbstractEnlistFuture fut) throws IgniteCheckedException
fut - Local enlist future.IgniteCheckedException - if future is already completed.protected void clearLocalFuture(GridDhtTxAbstractEnlistFuture fut) throws IgniteCheckedException
fut - Local enlist future.IgniteCheckedException - if future is already completed.protected void checkCompleted()
throws IgniteCheckedException
IgniteCheckedException - if future is already completed.public boolean onCancelled()
onCancelled in class GridFutureAdapter<T>True if cancel flag was set by this call.public boolean onDone(@Nullable
T res,
@Nullable
@Nullable Throwable err,
boolean cancelled)
onDone in class GridCacheCompoundIdentityFuture<T>res - Result.err - Error.cancelled - True if future is being cancelled.True if result was set by this call.protected void logError(IgniteLogger log, String msg, Throwable e)
logError in class GridCompoundFuture<T,T>log - IgniteLogger.msg - ShortMessage.e - Exception.protected void logDebug(IgniteLogger log, String msg)
logDebug in class GridCompoundFuture<T,T>log - IgniteLogger.msg - ShortMessage.public boolean trackable()
trackable in interface GridCacheFuture<T>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<T>public GridCacheVersion version()
version in interface GridCacheVersionedFuture<T>public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
onOwnerChanged in interface GridCacheVersionedFuture<T>entry - Entry which received new owner.owner - Owner.True if future cares about this entry.public IgniteUuid futureId()
futureId in interface GridCacheFuture<T>protected long remainingTime()
throws IgniteTxTimeoutCheckedException
0 if timeout isn't specified. -1 if time is out.IgniteTxTimeoutCheckedException - If timed out.@NotNull protected @NotNull IgniteTxTimeoutCheckedException timeoutException()
protected abstract void map(boolean topLocked)
topLocked - Whether topology was already locked.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020