Class VersionedMetadataImpl
java.lang.Object
org.infinispan.client.hotrod.impl.VersionedMetadataImpl
- All Implemented Interfaces:
Metadata
,Versioned
,VersionedMetadata
- Since:
- 9.0
- Author:
- Tristan Tarrant
-
Constructor Summary
ConstructorDescriptionVersionedMetadataImpl
(long created, int lifespan, long lastUsed, int maxIdle, long version) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
int
int
long
-
Constructor Details
-
VersionedMetadataImpl
public VersionedMetadataImpl(long created, int lifespan, long lastUsed, int maxIdle, long version)
-
-
Method Details
-
getCreated
public long getCreated()- Specified by:
getCreated
in interfaceMetadata
- Returns:
- Time when entry was created. -1 for immortal entries.
-
getLifespan
public int getLifespan()- Specified by:
getLifespan
in interfaceMetadata
- Returns:
- Lifespan of the entry in seconds. Negative values are interpreted as unlimited lifespan.
-
getLastUsed
public long getLastUsed()- Specified by:
getLastUsed
in interfaceMetadata
- Returns:
- Time when entry was last used. -1 for immortal entries.
-
getMaxIdle
public int getMaxIdle()- Specified by:
getMaxIdle
in 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:
getVersion
in interfaceVersioned
-