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(Boolean res,
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, startTime
add, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, markInitialized
chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, result
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result
public 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 Boolean res, @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 Fabric : ver. 2.0.0 Release Date : April 30 2017