public class GridCacheTxRecoveryFuture extends GridCompoundIdentityFuture<Boolean> implements GridCacheFuture<Boolean>
AbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
GridCacheTxRecoveryFuture(GridCacheSharedContext<?,?> cctx,
IgniteInternalTx tx,
UUID failedNodeId,
Map<UUID,Collection<UUID>> txNodes) |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
futureId() |
void |
markNotTrackable()
Marks this future as non-trackable.
|
Collection<? extends ClusterNode> |
nodes() |
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() |
GridCacheVersion |
version() |
add, addAll, addAll, cancel, futures, hasPending, ignoreChildFailures, initialized, markInitialized, pending, reducer, reducerchain, duration, endTime, error, get, get, get, get0, ignoreInterrupts, isCancelled, isDone, isFailed, listen, 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, setExclusiveOwnerThreadpublic GridCacheTxRecoveryFuture(GridCacheSharedContext<?,?> cctx, IgniteInternalTx tx, UUID failedNodeId, Map<UUID,Collection<UUID>> txNodes)
cctx - Context.tx - Transaction.failedNodeId - ID of failed node started transaction.txNodes - Transaction mapping.public void prepare()
public void onResult(UUID nodeId, GridCacheTxRecoveryResponse res)
nodeId - Node ID.res - Response.public IgniteUuid futureId()
futureId in interface GridCacheFuture<Boolean>public GridCacheVersion version()
version in interface GridCacheFuture<Boolean>public Collection<? extends ClusterNode> nodes()
nodes 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.2.0-incubating Release Date : June 16 2015