11.2.3 Reactor Spring Annotations - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 3.1.7
11.2.3 Reactor Spring Annotations
Reactor provides a few useful annotations that can be used for declaratively consuming events in a Grails service.To declare an event consumer use theConsumer
annotation:import reactor.spring.context.annotation.*@Consumer
class MyService {}
Selector
annotation:import reactor.spring.context.annotation.*@Consumer class MyService { @Selector('my.event') void myEventListener(Object data) { println "GOT EVENT $data" } }