Class GridDhtGetSingleFuture<K,​V>

    • 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.
      • onDone

        public boolean onDone​(GridCacheEntryInfo res,
                              Throwable err)
        Callback to notify that future is finished. Note that if non-null exception is passed in the result value will be ignored.
        Overrides:
        onDone in class GridFutureAdapter<GridCacheEntryInfo>
        Parameters:
        res - Optional result.
        err - Optional error.
        Returns:
        True if 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:
        invalidPartitions in interface GridDhtFuture<K>
        Returns:
        Keys to retry because this node is no longer a primary or backup.