Class GridDhtGetSingleFuture<K,V>
- java.lang.Object
-
- org.apache.ignite.internal.util.future.GridFutureAdapter<GridCacheEntryInfo>
-
- org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtGetSingleFuture<K,V>
-
- All Implemented Interfaces:
IgniteInternalFuture<GridCacheEntryInfo>,GridDhtFuture<GridCacheEntryInfo>
public final class GridDhtGetSingleFuture<K,V> extends GridFutureAdapter<GridCacheEntryInfo> implements GridDhtFuture<GridCacheEntryInfo>
-
-
Constructor Summary
Constructors Constructor Description GridDhtGetSingleFuture(GridCacheContext<K,V> cctx, long msgId, UUID reader, KeyCacheObject key, boolean addRdr, boolean readThrough, @NotNull AffinityTopologyVersion topVer, int taskNameHash, @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean recovery, @Nullable String txLbl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IgniteUuidfutureId()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.booleanonDone(GridCacheEntryInfo res, Throwable err)Callback to notify that future is finished.GridCacheVersionversion()-
Methods inherited from class org.apache.ignite.internal.util.future.GridFutureAdapter
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, onDone, reset, result, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.IgniteInternalFuture
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, listen, result
-
-
-
-
Constructor Detail
-
GridDhtGetSingleFuture
public GridDhtGetSingleFuture(GridCacheContext<K,V> cctx, long msgId, UUID reader, KeyCacheObject key, boolean addRdr, boolean readThrough, @NotNull @NotNull AffinityTopologyVersion topVer, int taskNameHash, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean recovery, @Nullable @Nullable String txLbl)
- Parameters:
cctx- Context.msgId- Message ID.reader- Reader.key- Key.addRdr- Add reader flag.readThrough- Read through flag.topVer- Topology version.taskNameHash- Task name hash code.expiryPlc- Expiry policy.skipVals- Skip values flag.txLbl- Transaction label.
-
-
Method Detail
-
futureId
public IgniteUuid futureId()
- Returns:
- Future ID.
-
version
public GridCacheVersion version()
- Returns:
- Future version.
-
onDone
public boolean onDone(GridCacheEntryInfo res, Throwable err)
Callback to notify that future is finished. Note that if non-nullexception is passed in the result value will be ignored.- Overrides:
onDonein classGridFutureAdapter<GridCacheEntryInfo>- Parameters:
res- Optional result.err- Optional error.- Returns:
Trueif result was set by this call.
-
invalidPartitions
public 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.- Specified by:
invalidPartitionsin interfaceGridDhtFuture<K>- Returns:
- Keys to retry because this node is no longer a primary or backup.
-
-