Interface HybridCacheEntry<V>

All Superinterfaces:
CacheEntry
All Known Implementing Classes:
LRUHybridCache.HybridCacheEntryImpl

public interface HybridCacheEntry<V> extends CacheEntry
Represents a single hybrid cache entry. The entry can avoid being cached, see dropMe() for details.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tell the cache if this entry should be dropped as opposed to being kept in the cache.
    Getter for this cache entry internal value.

    Methods inherited from interface org.glassfish.hk2.utilities.cache.CacheEntry

    removeFromCache
  • Method Details

    • getValue

      V getValue()
      Getter for this cache entry internal value.
      Returns:
      Internal value.
    • dropMe

      boolean dropMe()
      Tell the cache if this entry should be dropped as opposed to being kept in the cache.
      Returns:
      true if the entry should not be cached.