Beispiel #1
0
 private static SwallowMessage createMessage() {
   SwallowMessage message = new SwallowMessage();
   message.setContent("this is a SwallowMessage");
   message.setGeneratedTime(new Date());
   HashMap<String, String> map = new HashMap<String, String>();
   map.put("property-key", "property-value");
   message.setProperties(map);
   message.setSha1("sha-1 string");
   message.setVersion("0.6.0");
   message.setType(TYPE);
   return message;
 }