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>
MetadataValueImpl.
- Since:
- 5.2
- Author:
- Tristan Tarrant
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataValueImpl(long created, int lifespan, long lastUsed, int maxIdle, long version, V value) -
Method Summary
Methods inherited from class VersionedValueImpl
getValue, getVersionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Versioned
getVersionMethods inherited from interface VersionedValue
getValue
-
Constructor Details
-
MetadataValueImpl
public MetadataValueImpl(long created, int lifespan, long lastUsed, int maxIdle, long version, V value)
-
-
Method Details
-
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.
-
toString
- Overrides:
toStringin classVersionedValueImpl<V>
-