Package net.subnoize.qcat.send
Annotation Interface SendTo
Marks a lister method as having the ability to send the return value as a
object as a message to the next queue;
@Component
public class MyListeners {
@ListenTo(value = "${examples.say.hello.queue}")
@SendTo("${examples.say.hello.result.queue}")
public String sayHello(String msg) {
return "Hello, "+msg;
}
}
- Author:
- John Bryant
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe queue to send the return value too. Can be overridden by the Session object./- Returns:
- Default:
- ""
-