org.terracotta.toolkit.atomic
Enum ToolkitTransactionType

java.lang.Object
  extended by java.lang.Enum<ToolkitTransactionType>
      extended by org.terracotta.toolkit.atomic.ToolkitTransactionType
All Implemented Interfaces:
Serializable, Comparable<ToolkitTransactionType>

public enum ToolkitTransactionType
extends Enum<ToolkitTransactionType>


Enum Constant Summary
NORMAL
          all changes done in a NORMAL Transaction are published atomically to the Terracotta Server Array.
SYNC
          synchronously flushes enclosed changes to the Terracotta Server Array, blocking the unlocking thread until changes have been acknowledged as received on Server.
 
Method Summary
static ToolkitTransactionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ToolkitTransactionType[] 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

NORMAL

public static final ToolkitTransactionType NORMAL
all changes done in a NORMAL Transaction are published atomically to the Terracotta Server Array.


SYNC

public static final ToolkitTransactionType SYNC
synchronously flushes enclosed changes to the Terracotta Server Array, blocking the unlocking thread until changes have been acknowledged as received on Server.

Method Detail

values

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

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

valueOf

public static ToolkitTransactionType 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 © 2013 Terracotta, Inc.. All Rights Reserved.