All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.client.hotrod.MetadataValue Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.client.hotrod;

/**
 * Besides the value, also contains a version and expiration information. Time values are server
 * time representations as returned by {@link org.infinispan.util.TimeService#wallClockTime}
 *
 * @author Tristan Tarrant
 * @since 5.2
 */
public interface MetadataValue extends VersionedValue {

   /**
    *
    * @return Time when entry was created. -1 for immortal entries.
    */
   long getCreated();

   /**
    *
    * @return Lifespan of the entry in seconds. Negative values are interpreted as unlimited
    *         lifespan.
    */
   int getLifespan();

   /**
    *
    * @return Time when entry was last used. -1 for immortal entries.
    */
   long getLastUsed();

   /**
    *
    * @return The maximum amount of time (in seconds) this key is allowed to be idle for before it
    *         is considered as expired.
    */
   int getMaxIdle();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy