Class GridNearSingleGetRequest

    • Constructor Detail

      • GridNearSingleGetRequest

        public GridNearSingleGetRequest()
        Empty constructor required for Message.
      • GridNearSingleGetRequest

        public GridNearSingleGetRequest​(int cacheId,
                                        long futId,
                                        KeyCacheObject key,
                                        boolean readThrough,
                                        @NotNull
                                        @NotNull AffinityTopologyVersion topVer,
                                        int taskNameHash,
                                        long createTtl,
                                        long accessTtl,
                                        boolean skipVals,
                                        boolean addReader,
                                        boolean needVer,
                                        boolean addDepInfo,
                                        boolean recovery,
                                        @Nullable
                                        @Nullable String txLbl)
        Parameters:
        cacheId - Cache ID.
        futId - Future ID.
        key - Key.
        readThrough - Read through flag.
        skipVals - Skip values flag. When false, only boolean values will be returned indicating whether cache entry has a value.
        topVer - Topology version.
        taskNameHash - Task name hash.
        createTtl - New TTL to set after entry is created, -1 to leave unchanged.
        accessTtl - New TTL to set after entry is accessed, -1 to leave unchanged.
        addReader - Add reader flag.
        needVer - True if entry version is needed.
        addDepInfo - Deployment info.
        txLbl - Transaction label.
    • Method Detail

      • futureId

        public long futureId()
        Returns:
        Future ID.
      • taskNameHash

        public int taskNameHash()
        Gets task name hash.
        Returns:
        Task name hash.
      • createTtl

        public long createTtl()
        Returns:
        New TTL to set after entry is created, -1 to leave unchanged.
      • accessTtl

        public long accessTtl()
        Returns:
        New TTL to set after entry is accessed, -1 to leave unchanged.
      • partition

        public int partition()
        Overrides:
        partition in class GridCacheMessage
        Returns:
        Partition ID this message is targeted to or -1 if it cannot be determined.
      • txLabel

        @Nullable
        public @Nullable String txLabel()
        Get transaction label (may be null).
        Returns:
        Transaction label;
      • readThrough

        public boolean readThrough()
        Returns:
        Read through flag.
      • skipValues

        public boolean skipValues()
        Returns:
        Read through flag.
      • addReader

        public boolean addReader()
        Returns:
        Add reader flag.
      • needVersion

        public boolean needVersion()
        Returns:
        True if entry version is needed.
      • needEntryInfo

        public boolean needEntryInfo()
        Returns:
        True if full entry information is needed.
      • recovery

        public boolean recovery()
        Returns:
        True if recovery flag is set.
      • addDeploymentInfo

        public boolean addDeploymentInfo()
        Deployment enabled flag indicates whether deployment info has to be added to this message.
        Specified by:
        addDeploymentInfo in class GridCacheMessage
        Returns:
        true or if deployment info must be added to the the message, false otherwise.
      • directType

        public short directType()
        Gets message type.
        Specified by:
        directType in interface Message
        Returns:
        Message type.