Class GridNearAtomicUpdateResponse

    • Field Detail

      • CACHE_MSG_IDX

        public static final int CACHE_MSG_IDX
        Cache message index.
    • Constructor Detail

      • GridNearAtomicUpdateResponse

        public GridNearAtomicUpdateResponse()
        Empty constructor required by Externalizable.
      • GridNearAtomicUpdateResponse

        public GridNearAtomicUpdateResponse​(int cacheId,
                                            UUID nodeId,
                                            long futId,
                                            int partId,
                                            boolean nodeLeft,
                                            boolean addDepInfo)
        Parameters:
        cacheId - Cache ID.
        nodeId - Node ID this reply should be sent to.
        futId - Future ID.
        partId - Partition.
        nodeLeft - True if primary node failed.
        addDepInfo - Deployment info flag.
    • Method Detail

      • nodeLeftResponse

        public boolean nodeLeftResponse()
        Returns:
        True if primary node failed.
      • mapping

        public void mapping​(List<UUID> mapping)
        Parameters:
        mapping - Mapping.
      • mapping

        @Nullable
        public @Nullable List<UUID> mapping()
        Returns:
        DHT nodes.
      • nodeId

        public UUID nodeId()
        Returns:
        Node ID this response should be sent to.
      • nodeId

        public void nodeId​(UUID nodeId)
        Parameters:
        nodeId - Node ID.
      • futureId

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

        public GridCacheReturn returnValue()
        Returns:
        Return value.
      • returnValue

        public void returnValue​(GridCacheReturn ret)
        Parameters:
        ret - Return value.
      • nearExpireTime

        public long nearExpireTime​(int idx)
        Parameters:
        idx - Index.
        Returns:
        Expire time for near cache update.
      • nearTtl

        public long nearTtl​(int idx)
        Parameters:
        idx - Index.
        Returns:
        TTL for near cache update.
      • nearVersion

        public GridCacheVersion nearVersion()
        Returns:
        Version generated on primary node to be used for originating node's near cache update.
      • skippedIndexes

        @Nullable
        public @Nullable List<Integer> skippedIndexes()
        Returns:
        Indexes of keys for which update was skipped
      • nearValuesIndexes

        @Nullable
        public @Nullable List<Integer> nearValuesIndexes()
        Returns:
        Indexes of keys for which values were generated on primary node.
      • nearValue

        @Nullable
        public @Nullable CacheObject nearValue​(int idx)
        Parameters:
        idx - Index.
        Returns:
        Value generated on primary node which should be put to originating node's near cache.
      • addFailedKey

        public void addFailedKey​(KeyCacheObject key,
                                 Throwable e)
        Adds key to collection of failed keys.
        Parameters:
        key - Key to add.
        e - Error cause.
      • partition

        public int partition()
        Overrides:
        partition in class GridCacheMessage
        Returns:
        Partition ID this message is targeted to or -1 if it cannot be determined.
      • 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.