Class CacheLazyEntry<K,​V>

    • Constructor Detail

      • CacheLazyEntry

        public CacheLazyEntry​(GridCacheContext cctx,
                              KeyCacheObject keyObj,
                              CacheObject valObj,
                              boolean keepBinary)
        Parameters:
        cctx - Cache context.
        keyObj - Key cache object.
        valObj - Cache object value.
        keepBinary - Keep binary flag.
      • CacheLazyEntry

        public CacheLazyEntry​(GridCacheContext cctx,
                              KeyCacheObject keyObj,
                              V val,
                              boolean keepBinary)
        Parameters:
        keyObj - Key cache object.
        val - Value.
        keepBinary - Keep binary flag.
        cctx - Cache context.
      • CacheLazyEntry

        public CacheLazyEntry​(GridCacheContext ctx,
                              KeyCacheObject keyObj,
                              K key,
                              CacheObject valObj,
                              V val,
                              boolean keepBinary)
        Parameters:
        ctx - Cache context.
        keyObj - Key cache object.
        key - Key value.
        valObj - Cache object
        keepBinary - Keep binary flag.
        val - Cache value.
      • CacheLazyEntry

        public CacheLazyEntry​(GridCacheContext ctx,
                              KeyCacheObject keyObj,
                              K key,
                              CacheObject valObj,
                              V val,
                              boolean keepBinary,
                              Long updateCntr)
        Parameters:
        ctx - Cache context.
        keyObj - Key cache object.
        key - Key value.
        valObj - Cache object
        keepBinary - Keep binary flag.
        updateCntr - Partition update counter.
        val - Cache value.
    • Method Detail

      • getKey

        public K getKey()
      • getValue

        public V getValue()
      • getValue

        public V getValue​(boolean keepBinary)
        Returns the value stored in the cache when this entry was created.
        Parameters:
        keepBinary - Flag to keep binary if needed.
        Returns:
        the value corresponding to this entry
      • value

        public V value()
        Returns:
        Return value. This methods doesn't initialize value.
      • key

        public K key()
        Returns:
        Return key. This methods doesn't initialize key.
      • keepBinary

        public boolean keepBinary()
        Returns:
        Keep binary flag.
      • updateCounter

        public void updateCounter​(long updateCntr)
        Sets update counter.
        Parameters:
        updateCntr - Update counter.
      • unwrap

        public <T> T unwrap​(Class<T> cls)