|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnathan.middleware.MessageID
public class MessageID
MessageID is used to create logical timestamps for messages.
Constructor Summary | |
---|---|
MessageID()
Creates a new instance of message ID |
Method Summary | |
---|---|
int |
getID()
Gets the current ID number. |
int |
getMaxID(int otherID)
Compares two IDs and returns the largest values after incrementing the ID by on. |
int |
getNextID()
Gets the next availiable ID number to use. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageID()
Method Detail |
---|
public int getNextID()
public int getID()
public int getMaxID(int otherID)
otherID
- The ID to compare with.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |