Class MetadataValueImpl<V>
- java.lang.Object
-
- org.infinispan.client.hotrod.impl.VersionedValueImpl<V>
-
- org.infinispan.client.hotrod.impl.MetadataValueImpl<V>
-
- All Implemented Interfaces:
Metadata
,MetadataValue<V>
,Versioned
,VersionedValue<V>
public class MetadataValueImpl<V> extends VersionedValueImpl<V> implements MetadataValue<V>
MetadataValueImpl.- Since:
- 5.2
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description MetadataValueImpl(long created, int lifespan, long lastUsed, int maxIdle, long version, V value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCreated()
long
getLastUsed()
int
getLifespan()
int
getMaxIdle()
String
toString()
-
Methods inherited from class org.infinispan.client.hotrod.impl.VersionedValueImpl
getValue, getVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.client.hotrod.Versioned
getVersion
-
Methods inherited from interface org.infinispan.client.hotrod.VersionedValue
getValue
-
-
-
-
Constructor Detail
-
MetadataValueImpl
public MetadataValueImpl(long created, int lifespan, long lastUsed, int maxIdle, long version, V value)
-
-
Method Detail
-
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.
-
toString
public String toString()
- Overrides:
toString
in classVersionedValueImpl<V>
-
-