Package org.olap4j.driver.xmla.cache
Enum XmlaOlap4jNamedMemoryCache.Property
- java.lang.Object
-
- java.lang.Enum<XmlaOlap4jNamedMemoryCache.Property>
-
- org.olap4j.driver.xmla.cache.XmlaOlap4jNamedMemoryCache.Property
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XmlaOlap4jNamedMemoryCache.Property>
- Enclosing class:
- XmlaOlap4jNamedMemoryCache
public static enum XmlaOlap4jNamedMemoryCache.Property extends java.lang.Enum<XmlaOlap4jNamedMemoryCache.Property>
Properties which will be considered for configuration.All parameters are optional.
-
-
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.
-
-
-
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.
-
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 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 namejava.lang.NullPointerException
- if the argument is null
-
-