javadoc and formatting

This commit is contained in:
Mark Fisher
2010-09-02 15:58:10 +00:00
parent 8d9046825e
commit c1b90d8aa7
2 changed files with 4 additions and 1 deletions

View File

@@ -17,7 +17,7 @@
package org.springframework.integration;
/**
* Base channel interface defining common behavior for message sending and receiving.
* Base channel interface defining common behavior for sending messages.
*
* @author Mark Fisher
*/

View File

@@ -70,14 +70,17 @@ public final class MessageHeaders implements Map<String, Object>, Serializable {
public static final String SEQUENCE_SIZE = PREFIX + "sequenceSize";
private final Map<String, Object> headers;
public MessageHeaders(Map<String, Object> headers) {
this.headers = (headers != null) ? new HashMap<String, Object>(headers) : new HashMap<String, Object>();
this.headers.put(ID, UUID.randomUUID());
this.headers.put(TIMESTAMP, new Long(System.currentTimeMillis()));
}
public UUID getId() {
return this.get(ID, UUID.class);
}