Enum XmlaOlap4jNamedMemoryCache.Property

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      MODE
      Eviction mode.
      NAME
      A unique identifier which allows two connections to share a same cache space.
      SIZE
      The number of entries to maintain in cache under the given cache name.
      TIMEOUT
      The number of seconds to maintain entries in cache before expiration.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static XmlaOlap4jNamedMemoryCache.Property valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static XmlaOlap4jNamedMemoryCache.Property[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
      • 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 Detail

      • values

        public static XmlaOlap4jNamedMemoryCache.Property[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (XmlaOlap4jNamedMemoryCache.Property c : XmlaOlap4jNamedMemoryCache.Property.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static XmlaOlap4jNamedMemoryCache.Property valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null