Package net.sf.colossus.server
Class MessageForClient
- java.lang.Object
-
- net.sf.colossus.server.MessageForClient
-
class MessageForClient extends java.lang.Object
Encapsulates one message that was sent to client, together with the last commitNumber and the message number (relative to the commit).
-
-
Field Summary
Fields Modifier and Type Field Description private int
commitNumber
private java.lang.String
message
private int
messageNumber
private java.lang.String
method
-
Constructor Summary
Constructors Constructor Description MessageForClient(int messageNr, int commitNr, java.lang.String message)
MessageForClient(MessageForClient original, int newMsgNumber)
Clone from another message in queue, but rewrite the message number because in re-sending they are different.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCommitNumber()
java.lang.String
getMessage()
int
getMessageNr()
java.lang.String
getMethod()
-
-
-
Constructor Detail
-
MessageForClient
public MessageForClient(int messageNr, int commitNr, java.lang.String message)
-
MessageForClient
public MessageForClient(MessageForClient original, int newMsgNumber)
Clone from another message in queue, but rewrite the message number because in re-sending they are different.- Parameters:
original
- The original MessageForClient to clone fromnewMsgNumber
- the MessageNumber to used instead
-
-