|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.tomp2p.message.MessageID
public class MessageID
A message ID consists of the message id, which is created randomly and the nodeaddress. I'm not sure if we need this class with Netty... We'll see
Constructor Summary | |
---|---|
MessageID(Message message)
Creates a message Id. |
Method Summary | |
---|---|
int |
compareTo(MessageID o)
|
boolean |
equals(Object obj)
|
int |
getId()
Returns the message Id |
PeerAddress |
getNodeAddress()
The node address of sender or recipient |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MessageID(Message message)
message
- Method Detail |
---|
public int getId()
public PeerAddress getNodeAddress()
public int compareTo(MessageID o)
compareTo
in interface Comparable<MessageID>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |