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

org.infinispan.globalstate.ScopedPersistentState Maven / Gradle / Ivy

There is a newer version: 9.4.8.Final
Show newest version
package org.infinispan.globalstate;

import java.util.function.BiConsumer;

/**
 * ScopedPersistentState.
 *
 * @author Tristan Tarrant
 * @since 8.1
 */
public interface ScopedPersistentState {
   public static final String GLOBAL_SCOPE = "___global";

   /**
    * Returns the name of this persistent state's scope
    */
   String getScope();

   /**
    * Sets a state property. Values will be unicode-escaped when written
    */
   void setProperty(String key, String value);

   /**
    * Retrieves a state property
    */
   String getProperty(String key);

   /**
    * Sets an integer state property.
    */
   void setProperty(String key, int value);

   /**
    * Sets a float state property.
    */
   void setProperty(String format, float f);

   /**
    * Retrieves an integer state property
    */
   int getIntProperty(String key);

   /**
    * Retrieves a float state property
    */
   float getFloatProperty(String key);

   /**
    * Performs the specified action on every entry of the state
    */
   void forEach(BiConsumer action);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy