toString in QueuedMessage

This commit is contained in:
Andy Janata 2012-01-23 23:03:08 -08:00
parent 5915a3558d
commit 347dfb0b02
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@ public class QueuedMessage implements Comparable<QueuedMessage> {
return this.messageType.getWeight() - qm.messageType.getWeight(); return this.messageType.getWeight() - qm.messageType.getWeight();
} }
@Override
public String toString() {
return messageType.toString() + "_" + data.toString();
}
/** /**
* Types of messages that can be queued. The numerical value is the priority that this message * Types of messages that can be queued. The numerical value is the priority that this message
* should be delivered (lower = more important) compared to other queued messages. * should be delivered (lower = more important) compared to other queued messages.