Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.5)

Part Number E13941-05

weblogic.wsee.reliability2.api
Enum SequenceState

java.lang.Object
  extended by java.lang.Enum<SequenceState>
      extended by weblogic.wsee.reliability2.api.SequenceState
All Implemented Interfaces:
Serializable, Comparable<SequenceState>

public enum SequenceState
extends Enum<SequenceState>

The possible states of a sequence on both the RM source and RM destination.


Enum Constant Summary
CLOSED
          Sequence is closed.
CLOSING
          Sequence is in the process of being closed.
CREATED
          Sequence handshaking is complete.
CREATING
          Sequence creation handshaking is in progress.
LAST_MESSAGE
          Deprecated. RM 1.0 only
LAST_MESSAGE_PENDING
          Deprecated. RM 1.0 only
NEW
          Initial state of a sequence.
TERMINATED
          Sequence is terminated.
TERMINATING
          Sequence is in the process of being terminated.
 
Method Summary
static boolean isClosedState(SequenceState state)
           
static boolean isTerminalState(SequenceState state)
           
 boolean isValidTransition(SequenceState state)
           
static SequenceState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SequenceState[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

NEW

public static final SequenceState NEW
Initial state of a sequence. Source: From construction till CreateSequence is sent Destination: Not used, transition directly to CREATING


CREATING

public static final SequenceState CREATING
Sequence creation handshaking is in progress. Source: From CreateSequence send till CreateSequenceResponse is fully processed. Destination: During processing of CreateSequence till CreateSequenceResponse is sent.


CREATED

public static final SequenceState CREATED
Sequence handshaking is complete. Processing sequence messages. Source: After processing CreateSequenceResponse until either a LastMessage is sent, sequence is closed, or sequence is terminated. Destination: After CreateSequenceResponse is sent till the sequence receives LastMessage, CloseSequence, TerminateSequence or the sequence times out. Timeout will cause the sequence to be forcibly terminated (in RM 1.1 and beyond this will send TerminateSequence to the RM source).


LAST_MESSAGE_PENDING

public static final SequenceState LAST_MESSAGE_PENDING
Deprecated. RM 1.0 only
RM 1.0 Only. Source: Indicates a LastMessage has been sent. Destination: Indicates a LastMessage has been received and is being processed.


LAST_MESSAGE

public static final SequenceState LAST_MESSAGE
Deprecated. RM 1.0 only
RM 1.0 Only. Source: Indicates a LastMessage has been sent and ack'd. Destination: Indicates a LastMessage has been received and ack'd.


CLOSING

public static final SequenceState CLOSING
Sequence is in the process of being closed. No sequence messages can be sent or received. Source: Upon send of CloseSequence until CloseSequenceResponse is processed. Destination: Upon receipt of CloseSequence until CloseSequenceResponse is sent.


CLOSED

public static final SequenceState CLOSED
Sequence is closed. No sequence messages can be sent or received. Source: After CloseSequenceResponse is processed. Destination: After CloseSequenceResponse is sent.


TERMINATING

public static final SequenceState TERMINATING
Sequence is in the process of being terminated. No sequence messages can be sent or received. Source: After sending TerminateSequence till TerminateSequenceResponse is processed. Destination: After TerminateSequence is received until TerminateSequenceResponse is sent. Timeout will cause the sequence to be forcibly terminated (in RM 1.1 and beyond this will send TerminateSequence to the RM source). Sequence moves immediately to TERMINATED.


TERMINATED

public static final SequenceState TERMINATED
Sequence is terminated. No sequence messages can be sent or received. Source: After TerminateSequenceResponse is processed. Destination: After TerminateSequenceResponse is sent. Timeout will cause the sequence to be forcibly terminated (in RM 1.1 and beyond this will send TerminateSequence to the RM source). Sequence moves immediately to TERMINATED.

Method Detail

values

public static SequenceState[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SequenceState c : SequenceState.values())
        System.out.println(c);

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

valueOf

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

isValidTransition

public boolean isValidTransition(SequenceState state)

isTerminalState

public static boolean isTerminalState(SequenceState state)

isClosedState

public static boolean isClosedState(SequenceState state)

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.5)

Part Number E13941-05