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

org.infinispan.expiration.TouchMode Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.expiration;

/**
 * Control how the timestamp of read keys are updated on all the key owners in a cluster.
 *
 * @since 13.0
 * @author Dan Berindei
 */
public enum TouchMode {
   /**
    * Delay read operations until the other owners confirm updating the timestamp of the entry
    */
   SYNC,
   /**
    * Send touch commands to other owners, but do not wait for their confirmation.
    *
    * This allows read operations to return the value of a key even if another node has started expiring it.
    * When that happens, the read won't extend the lifespan of the key.
    */
   ASYNC
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy