(1..120).each { notify 'my.event', it }
import grails.transaction.Transactionalimport reactor.spring.context.annotation.Consumerimport reactor.spring.context.annotation.Selector@Transactional@Consumerclass ReactorService { @Selector('my.event') void myEventListener(Object data) { log.info "S ******* GOT EVENT $data ***************** "sleep 2000log.info "E ******* GOT EVENT $data ***************** "}
}
0 Responses to "Simple Reactor with Grails 3":
Post a Comment