Ejemplo n.º 1
0
 private Map<AMQPString, AMQPType> annotationMap() throws IOException {
     Map<AMQPString, AMQPType> annotations = new HashMap<AMQPString, AMQPType>();
     // the spec allows keys to be symbol or ulong only, but the library only allows string
     annotations.put(new AMQPString("key1"), new AMQPString("value1"));
     annotations.put(new AMQPString("key2"), new AMQPString("value2"));
     return annotations;
 }