Enum XmlaOlap4jNamedMemoryCache.Property

java.lang.Object
java.lang.Enum<XmlaOlap4jNamedMemoryCache.Property>
org.olap4j.driver.xmla.cache.XmlaOlap4jNamedMemoryCache.Property
All Implemented Interfaces:
Serializable, Comparable<XmlaOlap4jNamedMemoryCache.Property>, Constable
Enclosing class:
XmlaOlap4jNamedMemoryCache

public static enum XmlaOlap4jNamedMemoryCache.Property extends Enum<XmlaOlap4jNamedMemoryCache.Property>
Properties which will be considered for configuration.

All parameters are optional.

  • Enum Constant Details

    • NAME

      public static final XmlaOlap4jNamedMemoryCache.Property NAME
      A unique identifier which allows two connections to share a same cache space. Setting this to an already existing cache space will cause the cache manager to ignore other configuration properties, such as eviction mode and so on. Not setting this property will assign a random name to the cache space, thus creating a unique space.
    • SIZE

      public static final XmlaOlap4jNamedMemoryCache.Property SIZE
      The number of entries to maintain in cache under the given cache name.
    • TIMEOUT

      public static final XmlaOlap4jNamedMemoryCache.Property TIMEOUT
      The number of seconds to maintain entries in cache before expiration.
    • MODE

      public static final XmlaOlap4jNamedMemoryCache.Property MODE
      Eviction mode. Supported eviction modes are LIFO (last in first out), FIFO (first in first out), LFU (least frequently used) and MFU (most frequently used).
  • Method Details

    • values

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

      public static XmlaOlap4jNamedMemoryCache.Property valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null