Added toString methods.
This commit is contained in:
@@ -81,4 +81,8 @@ public class GenericMessage<T> implements Message<T> {
|
||||
return (expiration != null) ? expiration.getTime() < System.currentTimeMillis() : false;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "[ID=" + this.id + "][Header=" + this.header + "][Payload='" + this.payload + "']";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -134,4 +134,8 @@ public class MessageHeader {
|
||||
return this.attributes.keySet();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "[Properties=" + this.properties + "][Attributes=" + this.attributes + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user