Class AbstractInternalCacheEntry

    • Field Detail

    • Constructor Detail

      • AbstractInternalCacheEntry

        protected AbstractInternalCacheEntry()
      • AbstractInternalCacheEntry

        protected AbstractInternalCacheEntry​(Object key)
    • Method Detail

      • commit

        public final void commit​(DataContainer container)
        Description copied from interface: CacheEntry
        Commits changes
        Specified by:
        commit in interface CacheEntry
        Parameters:
        container - data container to commit to
      • setChanged

        public void setChanged​(boolean changed)
        Specified by:
        setChanged in interface CacheEntry
      • setCreated

        public final void setCreated​(boolean created)
        Specified by:
        setCreated in interface CacheEntry
      • setRemoved

        public final void setRemoved​(boolean removed)
        Specified by:
        setRemoved in interface CacheEntry
      • setEvicted

        public final void setEvicted​(boolean evicted)
        Specified by:
        setEvicted in interface CacheEntry
      • isNull

        public final boolean isNull()
        Description copied from interface: CacheEntry
        Tests whether the entry represents a null value, typically used for repeatable read.
        Specified by:
        isNull in interface CacheEntry
        Returns:
        true if this represents a null, false otherwise.
      • isChanged

        public final boolean isChanged()
        Specified by:
        isChanged in interface CacheEntry
        Returns:
        true if this entry has changed since being read from the container, false otherwise.
      • isCreated

        public final boolean isCreated()
        Specified by:
        isCreated in interface CacheEntry
        Returns:
        true if this entry has been newly created, false otherwise.
      • isRemoved

        public final boolean isRemoved()
        Specified by:
        isRemoved in interface CacheEntry
        Returns:
        true if this entry has been removed since being read from the container, false otherwise.
      • isEvicted

        public final boolean isEvicted()
        Specified by:
        isEvicted in interface CacheEntry
        Returns:
        true if this entry has been evicted since being read from the container, false otherwise.
      • skipLookup

        public boolean skipLookup()
        Specified by:
        skipLookup in interface CacheEntry
        Returns:
        true if the value must not be fetch from an external source
      • setMetadata

        public void setMetadata​(Metadata metadata)
        Description copied from interface: MetadataAware
        Set the metadata in the cache entry.
        Specified by:
        setMetadata in interface MetadataAware
        Parameters:
        metadata - to apply to the cache entry
      • isL1Entry

        public boolean isL1Entry()
        Specified by:
        isL1Entry in interface InternalCacheEntry
        Returns:
        true if the entry is a L1 entry.