public final class GridDhtForceKeysFuture<K,V> extends GridCompoundFuture<Object,Collection<K>> implements GridDhtFuture<Collection<K>>
AbstractQueuedSynchronizer.ConditionObjectfuts| Constructor and Description |
|---|
GridDhtForceKeysFuture(GridCacheContext<K,V> cctx,
AffinityTopologyVersion topVer,
Collection<KeyCacheObject> keys,
GridDhtPreloader 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) |
String |
toString() |
add, apply, cancel, futures, futuresSize, hasPending, ignoreFailure, initialized, markInitializedchain, duration, endTime, error, get, get, get, get0, getUninterruptibly, 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, setExclusiveOwnerThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, chain, duration, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result, startTimepublic GridDhtForceKeysFuture(GridCacheContext<K,V> cctx, AffinityTopologyVersion topVer, Collection<KeyCacheObject> keys, GridDhtPreloader 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()
public String toString()
toString in class GridCompoundFuture<Object,Collection<K>>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016