Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.client.hotrod;

Besides the value, also contains a version and expiration information. Time values are server time representations as returned by org.infinispan.util.TimeService

Author(s):
Tristan Tarrant
Since:
5.2
 
public interface MetadataValue<V> extends VersionedValue<V> {

   

Returns:
Time when entry was created. -1 for immortal entries.
   long getCreated();

   

Returns:
Lifespan of the entry in seconds. Negative values are interpreted as unlimited lifespan.
   int getLifespan();

   

Returns:
Time when entry was last used. -1 for immortal entries.
   long getLastUsed();

   

Returns:
The maximum amount of time (in seconds) this key is allowed to be idle for before it is considered as expired.
   int getMaxIdle();
New to GrepCode? Check out our FAQ X