org.systinet.wasp.wsrm.sequence
Class OneWaySequence.State

java.lang.Object
  extended byorg.systinet.wasp.wsrm.sequence.OneWaySequence.State
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
OneWaySequence

public static class OneWaySequence.State
extends java.lang.Object
implements java.io.Serializable

Enumeration representing a sequence state.

See Also:
OneWaySequence.getState(), Serialized Form

Field Summary
static int _BROKEN
          Ordinal value of BROKEN.
static int _COMPLETED
          Ordinal value of COMPLETED.
static int _DELIVERED
          Ordinal value of DELIVERED.
static int _DESTROYED
          Ordinal value of DESTROYED.
static int _HANDSHAKE
          Ordinal value of HANDSHAKE.
static int _NEW
          Ordinal value of NEW.
static int _OPEN
          Ordinal value of OPEN.
static int _TERMINATED
          Ordinal value of TERMINATED.
static OneWaySequence.State BROKEN
          Sequence was not able to fulfil required delivery assurances or was aborted by application.
static OneWaySequence.State COMPLETED
          Sequence has been completed without errors.
static OneWaySequence.State DELIVERED
          All messages sent up to this moment were acknowledged (in an output sequence), all messages received up to this moment were confirmed (in an input sequence).
static OneWaySequence.State DESTROYED
          State of destroyed sequences.
static OneWaySequence.State HANDSHAKE
          Sequence has been created, the sequence protocol id that is sent on wire is already known but no messages have been sent yet.
static OneWaySequence.State NEW
          Sequence has been created but no messages have been sent yet.
static OneWaySequence.State OPEN
          Not all sent messages have been acknowledged (in output sequence) or confirmed (in input sequence) yet.
static OneWaySequence.State TERMINATED
          Sequence has been completed and also terminated.
 
Constructor Summary
protected OneWaySequence.State()
           
protected OneWaySequence.State(int value)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
static OneWaySequence.State fromValue(int value)
          Returns state corresponding to given ordinal value.
 int getValue()
          Returns ordinal value of this state.
 int hashCode()
           
 java.lang.String toString()
          Returns string representation of the state.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_OPEN

public static final int _OPEN
Ordinal value of OPEN.

See Also:
Constant Field Values

_DELIVERED

public static final int _DELIVERED
Ordinal value of DELIVERED.

See Also:
Constant Field Values

_COMPLETED

public static final int _COMPLETED
Ordinal value of COMPLETED.

See Also:
Constant Field Values

_BROKEN

public static final int _BROKEN
Ordinal value of BROKEN.

See Also:
Constant Field Values

_DESTROYED

public static final int _DESTROYED
Ordinal value of DESTROYED.

See Also:
Constant Field Values

_NEW

public static final int _NEW
Ordinal value of NEW.

See Also:
Constant Field Values

_HANDSHAKE

public static final int _HANDSHAKE
Ordinal value of HANDSHAKE.

See Also:
Constant Field Values

_TERMINATED

public static final int _TERMINATED
Ordinal value of TERMINATED.

See Also:
Constant Field Values

NEW

public static final OneWaySequence.State NEW
Sequence has been created but no messages have been sent yet.

See Also:
OneWaySequence.getState()

HANDSHAKE

public static final OneWaySequence.State HANDSHAKE
Sequence has been created, the sequence protocol id that is sent on wire is already known but no messages have been sent yet.

See Also:
OneWaySequence.getState()

OPEN

public static final OneWaySequence.State OPEN
Not all sent messages have been acknowledged (in output sequence) or confirmed (in input sequence) yet.

See Also:
OneWaySequence.getState()

DELIVERED

public static final OneWaySequence.State DELIVERED
All messages sent up to this moment were acknowledged (in an output sequence), all messages received up to this moment were confirmed (in an input sequence). Last message was not sent or received yet.

See Also:
OneWaySequence.getState()

COMPLETED

public static final OneWaySequence.State COMPLETED
Sequence has been completed without errors. All messages including the last message of the sequence were delivered with required assurances and no error has occured. No more messages can be sent or received within this sequence.

See Also:
OneWaySequence.getState()

TERMINATED

public static final OneWaySequence.State TERMINATED
Sequence has been completed and also terminated. Since the termination message is not acknowleged, a sequence can be successfully terminated even when not in this state.

See Also:
OneWaySequence.getState()

BROKEN

public static final OneWaySequence.State BROKEN
Sequence was not able to fulfil required delivery assurances or was aborted by application. No more messages can be sent or received within this sequence.


DESTROYED

public static final OneWaySequence.State DESTROYED
State of destroyed sequences. Such sequence should be no longer used since it will be neither updated nor used by the active Sequence provider. No more messages can be sent or received within this sequence.

Constructor Detail

OneWaySequence.State

protected OneWaySequence.State(int value)

OneWaySequence.State

protected OneWaySequence.State()
Method Detail

getValue

public int getValue()
Returns ordinal value of this state.


fromValue

public static OneWaySequence.State fromValue(int value)
Returns state corresponding to given ordinal value.


toString

public java.lang.String toString()
Returns string representation of the state.


equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()