|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Metadata
This interface encapsulates metadata information that can be stored alongside values in the cache.
Nested Class Summary | |
---|---|
static interface |
Metadata.Builder
Metadata builder |
Method Summary | |
---|---|
Metadata.Builder |
builder()
Returns an instance of Metadata.Builder which can be used to build
new instances of Metadata instance which are full copies of
this Metadata . |
long |
lifespan()
Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds. |
long |
maxIdle()
Returns the the maximum amount of time that the cache entry associated with this metadata object is allowed to be idle for before it is considered as expired, in milliseconds. |
EntryVersion |
version()
Returns the version of the cache entry with which this metadata object is associated. |
Method Detail |
---|
long lifespan()
long maxIdle()
EntryVersion version()
Metadata.Builder builder()
Metadata.Builder
which can be used to build
new instances of Metadata
instance which are full copies of
this Metadata
.
Metadata.Builder
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |