IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid
Enum Session.TxCommitProtocol

java.lang.Object
  extended by java.lang.Enum<Session.TxCommitProtocol>
      extended by com.ibm.websphere.objectgrid.Session.TxCommitProtocol
All Implemented Interfaces:
Serializable, Comparable<Session.TxCommitProtocol>
Enclosing interface:
Session

public static enum Session.TxCommitProtocol
extends Enum<Session.TxCommitProtocol>

The commit protocols that can be used to commit the Session's transaction


Enum Constant Summary
ONEPHASE
          A commit protocol constant indicating that the Session transaction can read from multiple partitions but can only write to a single partition.
TWOPHASE
          A commit protocol constant indicating that the Session transaction can read and write from multiple partitions.
 
Method Summary
static Session.TxCommitProtocol valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Session.TxCommitProtocol[] 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

ONEPHASE

public static final Session.TxCommitProtocol ONEPHASE
A commit protocol constant indicating that the Session transaction can read from multiple partitions but can only write to a single partition. A TransactionException is thrown if the transaction writes to multiple partitions. The transaction is committed using the one-phase commit protocol.


TWOPHASE

public static final Session.TxCommitProtocol TWOPHASE
A commit protocol constant indicating that the Session transaction can read and write from multiple partitions. The transaction is committed using the two-phase commit protocol. If the transaction only writes to a single partition then the transaction is committed using the one-phase commit protocol.

Method Detail

values

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

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

valueOf

public static Session.TxCommitProtocol 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

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.