flux
Enum CacheType

java.lang.Object
  extended by java.lang.Enum<CacheType>
      extended by flux.CacheType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CacheType>

public enum CacheType
extends java.lang.Enum<CacheType>

Depending on the kind of cache used in a Flux engine, performance can be increased dramatically. This enumeration lists the different kinds of flow chart caches.

Flow chart caching can be enabled or disabled. Flow chart caching is disabled with the CacheType.NONE option. With this option, flow charts are never cached.

To enable flow chart caching on the local Flux engine only to increase performance without sharing cache information across all Flux engines in the cluster, use the CacheType.LOCAL setting. With this setting, flow charts are cached in the local engine only.

Author:
Copyright 2014 Flux Corporation. All rights reserved.
See Also:
Configuration.CACHE_TYPE

Enum Constant Summary
LOCAL
          The Flux engine uses a non-networked local cache.
NONE
          The engine does not cache flow charts.
 
Method Summary
static CacheType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CacheType[] 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

LOCAL

public static final CacheType LOCAL
The Flux engine uses a non-networked local cache.

Use a LOCAL cache type when the Flux engine is not clustered with any other Flux engines.


NONE

public static final CacheType NONE
The engine does not cache flow charts.

Method Detail

values

public static CacheType[] 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 (CacheType c : CacheType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CacheType 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


© 2014 Flux Corporation. All rights reserved.