Package one.microstream.cache.types
Class CachedValue.Default
java.lang.Object
one.microstream.cache.types.CachedValue.Default
- All Implemented Interfaces:
CachedValue
- Enclosing interface:
- CachedValue
public static class CachedValue.Default extends Object implements CachedValue
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.cache.types.CachedValue
CachedValue.Default
-
Method Summary
Modifier and Type Method Description long
accessCount()
long
accessTime()
long
byteSizeEstimate()
long
creationTime()
long
expiryTime()
CachedValue
expiryTime(long expiryTime)
boolean
isExpiredAt(long now)
long
modificationCount()
long
modificationTime()
Object
value()
Object
value(long accessTime)
CachedValue
value(Object value)
CachedValue
value(Object value, long modificationTime)
-
Method Details
-
creationTime
public long creationTime()- Specified by:
creationTime
in interfaceCachedValue
-
accessTime
public long accessTime()- Specified by:
accessTime
in interfaceCachedValue
-
accessCount
public long accessCount()- Specified by:
accessCount
in interfaceCachedValue
-
modificationTime
public long modificationTime()- Specified by:
modificationTime
in interfaceCachedValue
-
modificationCount
public long modificationCount()- Specified by:
modificationCount
in interfaceCachedValue
-
expiryTime
public long expiryTime()- Specified by:
expiryTime
in interfaceCachedValue
-
expiryTime
- Specified by:
expiryTime
in interfaceCachedValue
-
isExpiredAt
public boolean isExpiredAt(long now)- Specified by:
isExpiredAt
in interfaceCachedValue
-
value
- Specified by:
value
in interfaceCachedValue
-
value
- Specified by:
value
in interfaceCachedValue
-
value
- Specified by:
value
in interfaceCachedValue
-
value
- Specified by:
value
in interfaceCachedValue
-
byteSizeEstimate
public long byteSizeEstimate()- Specified by:
byteSizeEstimate
in interfaceCachedValue
-