public final class GridDhtForceKeysFuture<K,V> extends GridCompoundFuture<Object,Collection<K>> implements GridDhtFuture<Collection<K>>
| Constructor and Description |
|---|
GridDhtForceKeysFuture(GridCacheContext<K,V> cctx,
AffinityTopologyVersion topVer,
Collection<KeyCacheObject> keys) |
| 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(@Nullable Collection<K> res,
@Nullable Throwable err)
Callback to notify that future is finished.
|
void |
onResult(GridDhtForceKeysResponse res) |
String |
toString() |
add, apply, cancel, clear, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, logDebug, logError, markInitialized, processFailurechain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, resultpublic GridDhtForceKeysFuture(GridCacheContext<K,V> cctx, AffinityTopologyVersion topVer, Collection<KeyCacheObject> keys)
cctx - Cache context.topVer - Topology version.keys - Keys.public IgniteUuid futureId()
public Collection<Integer> invalidPartitions()
invalidPartitions in interface GridDhtFuture<Collection<K>>public boolean onDone(@Nullable
@Nullable Collection<K> res,
@Nullable
@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(GridDhtForceKeysResponse res)
res - Response.public void init()
public String toString()
toString in class GridCompoundFuture<Object,Collection<K>>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020