public class GridCacheTxRecoveryFuture extends GridCacheCompoundIdentityFuture<Boolean>
| Constructor and Description |
|---|
GridCacheTxRecoveryFuture(GridCacheSharedContext<?,?> cctx,
IgniteInternalTx tx,
Set<UUID> failedNodeIds,
Map<UUID,Collection<UUID>> txNodes) |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
boolean |
onDone(@Nullable Boolean res,
@Nullable Throwable err)
Callback to notify that future is finished.
|
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
void |
onResult(UUID nodeId,
GridCacheTxRecoveryResponse res) |
void |
prepare()
Initializes future.
|
String |
toString() |
boolean |
trackable() |
IgniteInternalTx |
tx() |
duration, onDone, startTimeadd, apply, cancel, clear, compoundsLockedExclusively, compoundsReadLock, compoundsReadUnlock, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, logDebug, logError, markInitialized, processFailurechain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic GridCacheTxRecoveryFuture(GridCacheSharedContext<?,?> cctx, IgniteInternalTx tx, Set<UUID> failedNodeIds, Map<UUID,Collection<UUID>> txNodes)
cctx - Context.tx - Transaction.failedNodeIds - IDs of failed nodes started transaction.txNodes - Transaction mapping.public void prepare()
public void onResult(UUID nodeId, GridCacheTxRecoveryResponse res)
nodeId - Node ID.res - Response.public IgniteInternalTx tx()
public IgniteUuid futureId()
public boolean onNodeLeft(UUID nodeId)
nodeId - Left node ID.True if future cared about this node.public boolean trackable()
True if future should be tracked.public void markNotTrackable()
public boolean onDone(@Nullable
@Nullable Boolean res,
@Nullable
@Nullable Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Boolean>res - Optional result.err - Optional error.True if result was set by this call.public String toString()
toString in class GridCompoundIdentityFuture<Boolean>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023