public final class GridDhtTxPrepareFuture extends GridCacheCompoundFuture<IgniteInternalTx,GridNearTxPrepareResponse> implements GridCacheVersionedFuture<GridNearTxPrepareResponse>, IgniteDiagnosticAware
| Modifier and Type | Field and Description |
|---|---|
protected IgniteUuid |
deploymentLdrId
Deployment class loader id which will be used for deserialization of entries on a distributed task.
|
| Constructor and Description |
|---|
GridDhtTxPrepareFuture(GridCacheSharedContext cctx,
GridDhtTxLocalAdapter tx,
long timeout,
int nearMiniId,
Map<IgniteTxKey,GridCacheVersion> dhtVerMap,
boolean last,
boolean retVal) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDiagnosticRequest(IgniteDiagnosticPrepareContext req) |
void |
complete()
Completes this future.
|
IgniteUuid |
futureId() |
@Nullable IgniteLogger |
logger() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
boolean |
onDone(GridNearTxPrepareResponse res0,
Throwable err)
Callback to notify that future is finished.
|
void |
onError(Throwable t) |
boolean |
onNodeLeft(UUID nodeId)
Callback for when node left.
|
boolean |
onOwnerChanged(GridCacheEntryEx entry,
GridCacheMvccCandidate owner) |
void |
onResult(UUID nodeId,
GridDhtTxPrepareResponse res) |
void |
prepare(GridNearTxPrepareRequest req)
Initializes future.
|
String |
toString() |
boolean |
trackable() |
GridDhtTxLocalAdapter |
tx() |
GridCacheVersion |
version() |
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, onCancelled, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitduration, startTimecancel, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result@GridToStringExclude protected final IgniteUuid deploymentLdrId
public GridDhtTxPrepareFuture(GridCacheSharedContext cctx, GridDhtTxLocalAdapter tx, long timeout, int nearMiniId, Map<IgniteTxKey,GridCacheVersion> dhtVerMap, boolean last, boolean retVal)
cctx - Context.tx - Transaction.timeout - Timeout.nearMiniId - Near mini future id.dhtVerMap - DHT versions map.last - True if this is last prepare operation for node.retVal - Return value flag.@Nullable public @Nullable IgniteLogger logger()
logger in class GridFutureAdapter<GridNearTxPrepareResponse>public IgniteUuid futureId()
futureId in interface GridCacheFuture<GridNearTxPrepareResponse>public GridCacheVersion version()
version in interface GridCacheVersionedFuture<GridNearTxPrepareResponse>public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
onOwnerChanged in interface GridCacheVersionedFuture<GridNearTxPrepareResponse>entry - Entry which received new owner.owner - Owner.True if future cares about this entry.public boolean trackable()
trackable in interface GridCacheFuture<GridNearTxPrepareResponse>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<GridNearTxPrepareResponse>public GridDhtTxLocalAdapter tx()
public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<GridNearTxPrepareResponse>nodeId - Left node ID.True if future cared about this node.public void onError(Throwable t)
t - Error.public void onResult(UUID nodeId, GridDhtTxPrepareResponse res)
nodeId - Sender.res - Result.public boolean onDone(GridNearTxPrepareResponse res0, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<GridNearTxPrepareResponse>res0 - Optional result.err - Optional error.True if result was set by this call.public void complete()
public void prepare(GridNearTxPrepareRequest req)
req - Prepare request.public void addDiagnosticRequest(IgniteDiagnosticPrepareContext req)
addDiagnosticRequest in interface IgniteDiagnosticAwarereq - Context.public String toString()
toString in class GridCompoundFuture<IgniteInternalTx,GridNearTxPrepareResponse>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023