Class GridDhtGetFuture<K,​V>

    • Constructor Detail

      • GridDhtGetFuture

        public GridDhtGetFuture​(GridCacheContext<K,​V> cctx,
                                long msgId,
                                UUID reader,
                                Map<KeyCacheObject,​Boolean> keys,
                                boolean readThrough,
                                @NotNull
                                @NotNull AffinityTopologyVersion topVer,
                                int taskNameHash,
                                @Nullable
                                @Nullable IgniteCacheExpiryPolicy expiryPlc,
                                boolean skipVals,
                                boolean recovery,
                                boolean addReaders,
                                @Nullable
                                @Nullable String txLbl)
        Parameters:
        cctx - Context.
        msgId - Message ID.
        reader - Reader.
        keys - Keys.
        readThrough - Read through flag.
        topVer - Topology version.
        taskNameHash - Task name hash code.
        expiryPlc - Expiry policy.
        skipVals - Skip values flag.
        txLbl - Transaction label.
    • Method Detail

      • 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:
        invalidPartitions in interface GridDhtFuture<K>
        Returns:
        Keys to retry because this node is no longer a primary or backup.
      • futureId

        public IgniteUuid futureId()
        Returns:
        Future ID.