Enum Class MapStoreConfig.LoadMode

java.lang.Object
java.lang.Enum<MapStoreConfig.LoadMode>
com.loomcache.server.datastructures.mapstore.MapStoreConfig.LoadMode
All Implemented Interfaces:
Serializable, Comparable<MapStoreConfig.LoadMode>, Constable
Enclosing class:
MapStoreConfig

public static enum MapStoreConfig.LoadMode extends Enum<MapStoreConfig.LoadMode>
Preload strategy.
  • Enum Constant Details

    • DISABLED

      public static final MapStoreConfig.LoadMode DISABLED
      No reads are issued to the backing store. This is suitable for write-through persistence in production until read-through loads are routed through replicated commands.
    • LAZY

      public static final MapStoreConfig.LoadMode LAZY
      Values are read from the store only when a get(key) misses in memory.
    • EAGER

      public static final MapStoreConfig.LoadMode EAGER
      At wire-up, enumerate MapStore.loadAllKeys() and populate the map up-front. Useful for caches that must be warm from the first request.
  • Method Details

    • values

      public static MapStoreConfig.LoadMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MapStoreConfig.LoadMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null