Spring Boot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
340 B

package org.test
@EnableReactor
@Log
class Runner implements CommandLineRunner {
@Autowired
Reactor reactor
void run(String... args) {
reactor.notify("hello", Event.wrap("Phil"))
log.info "Notified Phil"
}
@On(reactor="reactor", selector="hello")
void receive(Event<String> event) {
log.info "Hello ${event.data}"
}
}