Class GridDhtPartitionSupplyMessage

    • Constructor Detail

      • GridDhtPartitionSupplyMessage

        public GridDhtPartitionSupplyMessage()
        Empty constructor required for Externalizable.
    • Method Detail

      • ignoreClassErrors

        public boolean ignoreClassErrors()
        Overrides:
        ignoreClassErrors in class GridCacheMessage
        Returns:
        True if class loading errors should be ignored, false otherwise.
      • 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.
      • size

        public int size()
        Returns:
        Number of entries in message.
      • directType

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

        public long estimatedKeysCount()
        Returns:
        Estimated keys count.
      • addEstimatedKeysCount

        public void addEstimatedKeysCount​(long cnt)
        Parameters:
        cnt - Keys count to add.
      • keysForCache

        public long keysForCache​(int cacheId)
        Returns:
        Estimated keys count for a given cache ID.
      • addKeysForCache

        public void addKeysForCache​(int cacheId,
                                    long cnt)
        Parameters:
        cacheId - Cache ID.
        cnt - Keys count.