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

java.lang.Object
  extended byorg.systinet.wasp.wsrm.sequence.OneWaySequence.MessageState
Enclosing class:
OneWaySequence

public static class OneWaySequence.MessageState
extends java.lang.Object

Enumeration representing the state of a single message in a sequence.

See Also:
OneWaySequence.getMessageState(long)

Field Summary
static int _DELIVERED
          Ordinal value of DELIVERED.
static int _NOT_DELIVERED
          Ordinal value of NOT_DELIVERED.
static int _NOT_PRESENT
          Ordinal value of NOT_PRESENT.
static OneWaySequence.MessageState DELIVERED
          For output sequences: the message has been already sent and acknowledged.
static OneWaySequence.MessageState NOT_DELIVERED
          For output sequences: the message has been already sent but not acknowledged yet.
static OneWaySequence.MessageState NOT_PRESENT
          For output sequences: the message has not been sent yet.
 
Constructor Summary
protected OneWaySequence.MessageState(int value)
           
 
Method Summary
static OneWaySequence.MessageState fromValue(int value)
          Returns state corresponding to given ordinal value.
 int getValue()
          Returns ordinal value of this state.
 java.lang.String toString()
          Returns string representation of the state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_NOT_PRESENT

public static final int _NOT_PRESENT
Ordinal value of NOT_PRESENT.

See Also:
Constant Field Values

_NOT_DELIVERED

public static final int _NOT_DELIVERED
Ordinal value of NOT_DELIVERED.

See Also:
Constant Field Values

_DELIVERED

public static final int _DELIVERED
Ordinal value of DELIVERED.

See Also:
Constant Field Values

NOT_PRESENT

public static final OneWaySequence.MessageState NOT_PRESENT
For output sequences: the message has not been sent yet.
For input sequences: the message has not been received yet.

See Also:
OneWaySequence.getMessageState(long)

NOT_DELIVERED

public static final OneWaySequence.MessageState NOT_DELIVERED
For output sequences: the message has been already sent but not acknowledged yet.
For input sequences: the message has been already received but not confirmed yet.

See Also:
OneWaySequence.getMessageState(long)

DELIVERED

public static final OneWaySequence.MessageState DELIVERED
For output sequences: the message has been already sent and acknowledged.
For input sequences: the message has been already received and confirmed.

See Also:
OneWaySequence.getMessageState(long)
Constructor Detail

OneWaySequence.MessageState

protected OneWaySequence.MessageState(int value)
Method Detail

getValue

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


fromValue

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


toString

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