public class GridCacheTxRecoveryFuture extends GridCompoundIdentityFuture<Boolean> implements GridCacheFuture<Boolean>
AbstractQueuedSynchronizer.ConditionObjectsync| 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() |
add, apply, cancel, clear, future, futures, futuresCount, hasPending, ignoreFailure, initialized, markInitializedchain, duration, endTime, error, get, get, get, get0, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, result, startTime, tryAcquireShared, tryReleaseSharedacquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimepublic 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()
futureId in interface GridCacheFuture<Boolean>public boolean onNodeLeft(UUID nodeId)
onNodeLeft in interface GridCacheFuture<Boolean>nodeId - Left node ID.True if future cared about this node.public boolean trackable()
trackable in interface GridCacheFuture<Boolean>True if future should be tracked.public void markNotTrackable()
markNotTrackable in interface GridCacheFuture<Boolean>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. 1.8.0 Release Date : December 5 2016