Class DefaultServerCache.CacheEntry

java.lang.Object
io.ebeaninternal.server.cache.DefaultServerCache.CacheEntry
Enclosing class:
DefaultServerCache

public static final class DefaultServerCache.CacheEntry extends Object
Wraps the value to additionally hold createTime and lastAccessTime and hit counter.
  • Constructor Details

  • Method Details

    • forSort

      Store a copy of lastAccessTime used for sorting. This value should not change during trim processing.
    • getKey

      public Object getKey()
      Return the entry key.
    • getValue

      public Object getValue()
      Return the entry value.
    • getCreateTime

      public long getCreateTime()
      Return the time the entry was created.
    • getLastAccessTime

      public long getLastAccessTime()
      Return the time the entry was last accessed.