Package org.infinispan.hotrod.impl.cache
Class VersionedMetadataImpl
- java.lang.Object
-
- org.infinispan.hotrod.impl.cache.VersionedMetadataImpl
-
- All Implemented Interfaces:
Metadata,Versioned,VersionedMetadata
public class VersionedMetadataImpl extends Object implements VersionedMetadata
- Since:
- 14.0
-
-
Constructor Summary
Constructors Constructor Description VersionedMetadataImpl(long created, int lifespan, long lastUsed, int maxIdle, long version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreated()longgetLastUsed()intgetLifespan()intgetMaxIdle()longgetVersion()
-
-
-
Method Detail
-
getCreated
public long getCreated()
- Specified by:
getCreatedin interfaceMetadata- Returns:
- Time when entry was created. -1 for immortal entries.
-
getLifespan
public int getLifespan()
- Specified by:
getLifespanin interfaceMetadata- Returns:
- Lifespan of the entry in seconds. Negative values are interpreted as unlimited lifespan.
-
getLastUsed
public long getLastUsed()
- Specified by:
getLastUsedin interfaceMetadata- Returns:
- Time when entry was last used. -1 for immortal entries.
-
getMaxIdle
public int getMaxIdle()
- Specified by:
getMaxIdlein interfaceMetadata- Returns:
- The maximum amount of time (in seconds) this key is allowed to be idle for before it is considered as expired.
-
getVersion
public long getVersion()
- Specified by:
getVersionin interfaceVersioned
-
-