Class GridPartitionedGetFuture<K,V>
- java.lang.Object
-
- org.apache.ignite.internal.util.future.GridFutureAdapter<R>
-
- org.apache.ignite.internal.util.future.GridCompoundFuture<T,T>
-
- org.apache.ignite.internal.util.future.GridCompoundIdentityFuture<T>
-
- org.apache.ignite.internal.processors.cache.GridCacheCompoundIdentityFuture<Map<K,V>>
-
- org.apache.ignite.internal.processors.cache.distributed.dht.CacheDistributedGetFutureAdapter<K,V>
-
- org.apache.ignite.internal.processors.cache.distributed.dht.GridPartitionedGetFuture<K,V>
-
- All Implemented Interfaces:
Serializable,IgniteInternalFuture<Map<K,V>>,CacheGetFuture,GridCacheFuture<Map<K,V>>,IgniteInClosure<IgniteInternalFuture<Map<K,V>>>
public class GridPartitionedGetFuture<K,V> extends CacheDistributedGetFutureAdapter<K,V>
Colocated get future.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ignite.internal.processors.cache.distributed.dht.CacheDistributedGetFutureAdapter
CacheDistributedGetFutureAdapter.AbstractMiniFuture
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.cache.distributed.dht.CacheDistributedGetFutureAdapter
canRemap, cctx, deploymentLdrId, deserializeBinary, DFLT_MAX_REMAP_CNT, expiryPlc, forcePrimary, futId, invalidNodes, keepCacheObjects, keys, log, logRef, needVer, readThrough, recovery, remapCnt, skipVals, taskName, trackable
-
-
Constructor Summary
Constructors Constructor Description GridPartitionedGetFuture(GridCacheContext<K,V> cctx, Collection<KeyCacheObject> keys, boolean readThrough, boolean forcePrimary, String taskName, boolean deserializeBinary, boolean recovery, @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean needVer, boolean keepCacheObjects, @Nullable String txLbl, ClusterNode affNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterNodeaffNode()Explicit predefined single mapping (backup or primary).voidinit(AffinityTopologyVersion topVer)Initializes future.protected booleanisMini(IgniteInternalFuture<?> f)protected voidmap(Collection<KeyCacheObject> keys, Map<ClusterNode,LinkedHashMap<KeyCacheObject,Boolean>> mapped, AffinityTopologyVersion topVer)booleanonDone(Map<K,V> res, Throwable err)Callback to notify that future is finished.StringtoString()-
Methods inherited from class org.apache.ignite.internal.processors.cache.distributed.dht.CacheDistributedGetFutureAdapter
addNodeAsInvalid, checkRetryPermits, futureId, getInvalidNodes, initLogger, keys, markNotTrackable, onNodeLeft, onResult, partitionOwned, registrateFutureInMvccManager, serverNotFoundError, trackable
-
Methods inherited from class org.apache.ignite.internal.processors.cache.GridCacheCompoundIdentityFuture
duration, onDone, startTime
-
Methods inherited from class org.apache.ignite.internal.util.future.GridCompoundFuture
add, apply, cancel, clear, compoundsLockedExclusively, compoundsReadLock, compoundsReadUnlock, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, logDebug, logError, markInitialized, processFailure
-
Methods inherited from class org.apache.ignite.internal.util.future.GridFutureAdapter
chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, reset, result
-
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
-
GridPartitionedGetFuture
public GridPartitionedGetFuture(GridCacheContext<K,V> cctx, Collection<KeyCacheObject> keys, boolean readThrough, boolean forcePrimary, String taskName, boolean deserializeBinary, boolean recovery, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean skipVals, boolean needVer, boolean keepCacheObjects, @Nullable @Nullable String txLbl, ClusterNode affNode)
- Parameters:
cctx- Context.keys- Keys.readThrough- Read through flag.forcePrimary- Iftruethen will force network trip to primary node even if called on backup node.taskName- Task name.deserializeBinary- Deserialize binary flag.recovery- Recovery mode flag.expiryPlc- Expiry policy.skipVals- Skip values flag.needVer- Iftruereturns values as tuples containing value and version.keepCacheObjects- Keep cache objects flag.txLbl- Transaction label.
-
-
Method Detail
-
init
public void init(AffinityTopologyVersion topVer)
Initializes future.- Parameters:
topVer- Topology version.
-
onDone
public boolean onDone(Map<K,V> 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<Map<K,V>>- Parameters:
res- Optional result.err- Optional error.- Returns:
Trueif result was set by this call.
-
affNode
public ClusterNode affNode()
Explicit predefined single mapping (backup or primary).
-
isMini
protected boolean isMini(IgniteInternalFuture<?> f)
- Specified by:
isMiniin classCacheDistributedGetFutureAdapter<K,V>- Parameters:
f- Future.- Returns:
Trueif mini-future.
-
map
protected void map(Collection<KeyCacheObject> keys, Map<ClusterNode,LinkedHashMap<KeyCacheObject,Boolean>> mapped, AffinityTopologyVersion topVer)
- Specified by:
mapin classCacheDistributedGetFutureAdapter<K,V>- Parameters:
keys- Keys.mapped- Mappings to check for duplicates.topVer- Topology version on which keys should be mapped.
-
toString
public String toString()
- Overrides:
toStringin classCacheDistributedGetFutureAdapter<K,V>
-
-