Package io.ebeaninternal.server.cache
Class DefaultServerCache.CacheEntry
- java.lang.Object
-
- io.ebeaninternal.server.cache.DefaultServerCache.CacheEntry
-
- Enclosing class:
- DefaultServerCache
public static class DefaultServerCache.CacheEntry extends Object
Wraps the value to additionally hold createTime and lastAccessTime and hit counter.
-
-
Constructor Summary
Constructors Constructor Description CacheEntry(Object key, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCreateTime()
Return the time the entry was created.Object
getKey()
Return the entry key.long
getLastAccessTime()
Return the time the entry was last accessed.Object
getValue()
Return the entry value.
-
-
-
Constructor Detail
-
CacheEntry
public CacheEntry(Object key, Object value)
-
-
Method Detail
-
getCreateTime
public long getCreateTime()
Return the time the entry was created.
-
getLastAccessTime
public long getLastAccessTime()
Return the time the entry was last accessed.
-
-