public final class GridDhtForceKeysFuture<K,V> extends GridCompoundFuture<Object,Collection<K>> implements GridDhtFuture<Collection<K>>
AbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
GridDhtForceKeysFuture(GridCacheContext<K,V> cctx,
long topVer,
Collection<KeyCacheObject> keys,
GridDhtPreloader<K,V> preloader) |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
futureId() |
void |
init()
Initializes this future.
|
Collection<Integer> |
invalidPartitions()
Node that future should be able to provide keys to retry before
it completes, so it's not necessary to wait till future is done
to get retry keys.
|
void |
onDiscoveryEvent(DiscoveryEvent evt) |
boolean |
onDone(Collection<K> res,
Throwable err)
Callback to notify that future is finished.
|
void |
onResult(UUID nodeId,
GridDhtForceKeysResponse res) |
add, addAll, addAll, cancel, futures, hasPending, ignoreChildFailures, initialized, markInitialized, pending, reducer, reducer, toStringchain, duration, endTime, error, get, get, get, get0, 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 GridDhtForceKeysFuture(GridCacheContext<K,V> cctx, long topVer, Collection<KeyCacheObject> keys, GridDhtPreloader<K,V> preloader)
cctx - Cache context.topVer - Topology version.keys - Keys.preloader - Preloader.public IgniteUuid futureId()
public Collection<Integer> invalidPartitions()
invalidPartitions in interface GridDhtFuture<Collection<K>>public boolean onDone(@Nullable Collection<K> res, @Nullable Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Collection<K>>res - Optional result.err - Optional error.True if result was set by this call.public void onDiscoveryEvent(DiscoveryEvent evt)
evt - Discovery event.public void onResult(UUID nodeId, GridDhtForceKeysResponse res)
nodeId - Node left callback.res - Response.public void init()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015