Class GridCacheEntryInfo

    • Constructor Detail

      • GridCacheEntryInfo

        public GridCacheEntryInfo()
    • Method Detail

      • cacheId

        public int cacheId()
        Returns:
        Cache ID.
      • cacheId

        public void cacheId​(int cacheId)
        Parameters:
        cacheId - Cache ID.
      • key

        public void key​(KeyCacheObject key)
        Parameters:
        key - Entry key.
      • value

        public CacheObject value()
        Returns:
        Entry value.
      • value

        public void value​(CacheObject val)
        Parameters:
        val - Entry value.
      • expireTime

        public long expireTime()
        Returns:
        Expire time.
      • expireTime

        public void expireTime​(long expireTime)
        Parameters:
        expireTime - Expiration time.
      • ttl

        public long ttl()
        Returns:
        Time to live.
      • ttl

        public void ttl​(long ttl)
        Parameters:
        ttl - Time to live.
      • version

        public void version​(GridCacheVersion ver)
        Parameters:
        ver - Version.
      • isNew

        public boolean isNew()
        Returns:
        New flag.
      • setNew

        public void setNew​(boolean isNew)
        Parameters:
        isNew - New flag.
      • isDeleted

        public boolean isDeleted()
        Returns:
        True if deleted.
      • setDeleted

        public void setDeleted​(boolean deleted)
        Parameters:
        deleted - Deleted flag.
      • onAckReceived

        public void onAckReceived()
        Method called when ack message received.
        Specified by:
        onAckReceived in interface Message
      • writeTo

        public boolean writeTo​(ByteBuffer buf,
                               MessageWriter writer)
        Writes this message to provided byte buffer.
        Specified by:
        writeTo in interface Message
        Parameters:
        buf - Byte buffer.
        writer - Writer.
        Returns:
        Whether message was fully written.
      • readFrom

        public boolean readFrom​(ByteBuffer buf,
                                MessageReader reader)
        Reads this message from provided byte buffer.
        Specified by:
        readFrom in interface Message
        Parameters:
        buf - Byte buffer.
        reader - Reader.
        Returns:
        Whether message was fully read.
      • directType

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

        public byte fieldsCount()
        Gets fields count.
        Specified by:
        fieldsCount in interface Message
        Returns:
        Fields count.