com.teraspaces.qwfix
Enum FIXEngineMessageCacheType

java.lang.Object
  extended by java.lang.Enum<FIXEngineMessageCacheType>
      extended by com.teraspaces.qwfix.FIXEngineMessageCacheType
All Implemented Interfaces:
Serializable, Comparable<FIXEngineMessageCacheType>

public enum FIXEngineMessageCacheType
extends Enum<FIXEngineMessageCacheType>

Defines how the FIX engine manages the memory of FIX message cache.


Enum Constant Summary
BY_MEMORY_USAGE
          The cache size is limited by a fixed size of memory usage (in megabytes).
BY_MESSAGE_COUNT
          The cache size is limited by a fixed number of message count.
 
Method Summary
static FIXEngineMessageCacheType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FIXEngineMessageCacheType[] 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

BY_MESSAGE_COUNT

public static final FIXEngineMessageCacheType BY_MESSAGE_COUNT
The cache size is limited by a fixed number of message count.


BY_MEMORY_USAGE

public static final FIXEngineMessageCacheType BY_MEMORY_USAGE
The cache size is limited by a fixed size of memory usage (in megabytes). Note the memory usage for each FIXMessage in cache is an approximate number. Memory allocated for the same FIXMessage on 64 bit platform is slightly bigger than that on 32 bit platform.

Method Detail

values

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

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

valueOf

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