Package org.infinispan.client.hotrod
Interface Metadata
-
- All Known Subinterfaces:
MetadataValue<V>,VersionedMetadata
public interface MetadataRepresents metadata about an entry, such as creation and access times and expiration information. Time values are server time representations as returned byTimeService.wallClockTime()- Since:
- 9.0
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCreated()longgetLastUsed()intgetLifespan()intgetMaxIdle()
-
-
-
Method Detail
-
getCreated
long getCreated()
- Returns:
- Time when entry was created. -1 for immortal entries.
-
getLifespan
int getLifespan()
- Returns:
- Lifespan of the entry in seconds. Negative values are interpreted as unlimited lifespan.
-
getLastUsed
long getLastUsed()
- Returns:
- Time when entry was last used. -1 for immortal entries.
-
getMaxIdle
int getMaxIdle()
- Returns:
- The maximum amount of time (in seconds) this key is allowed to be idle for before it is considered as expired.
-
-