org.terracotta.toolkit.store
Enum ToolkitConfigFields.Consistency

java.lang.Object
  extended by java.lang.Enum<ToolkitConfigFields.Consistency>
      extended by org.terracotta.toolkit.store.ToolkitConfigFields.Consistency
All Implemented Interfaces:
Serializable, Comparable<ToolkitConfigFields.Consistency>
Enclosing interface:
ToolkitConfigFields

public static enum ToolkitConfigFields.Consistency
extends Enum<ToolkitConfigFields.Consistency>

Enum type representing valid values for ToolkitConfigFields.CONSISTENCY_FIELD_NAME name mapping. Use Enum.name()


Enum Constant Summary
EVENTUAL
          Eventual consistency with concurrent locks
STRONG
          Strong consistency with write locks
SYNCHRONOUS_STRONG
          Strong consistency with sync-write locks
 
Method Summary
static ToolkitConfigFields.Consistency valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ToolkitConfigFields.Consistency[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SYNCHRONOUS_STRONG

public static final ToolkitConfigFields.Consistency SYNCHRONOUS_STRONG
Strong consistency with sync-write locks


STRONG

public static final ToolkitConfigFields.Consistency STRONG
Strong consistency with write locks


EVENTUAL

public static final ToolkitConfigFields.Consistency EVENTUAL
Eventual consistency with concurrent locks

Method Detail

values

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

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

valueOf

public static ToolkitConfigFields.Consistency 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


Copyright © 2014 Terracotta, Inc.. All Rights Reserved.