be.SIRAPRISE.messages
Class CommittedMessageType

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.CommittedMessageType
Direct Known Subclasses:
CommittedMessageTypeV1_0

public abstract class CommittedMessageType
extends ServerMessageType

The Committed message type is the type of message sent by a server in response to a CommitRollback message. It holds an indication of the action undertaken, which might differ from the action requested.

Author:
Erwin Smout

Field Summary
static int MESSAGETYPEID
          Comment for MESSAGETYPEID
 
Method Summary
abstract  CommittedMessage message(boolean commit)
          Factory method for getting a message of this version of the message type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGETYPEID

public static final int MESSAGETYPEID
Comment for MESSAGETYPEID

See Also:
Constant Field Values
Method Detail

message

public abstract CommittedMessage message(boolean commit)
Factory method for getting a message of this version of the message type

Parameters:
commit - true if the action undertaken was a commit, false if it was a rollback
Returns:
A CommittedMessage of this type