This commit is contained in:
Phillip Webb
2013-11-04 22:02:20 -08:00
parent d784cb6a88
commit bec1c8f00f
14 changed files with 97 additions and 105 deletions

View File

@@ -5,12 +5,12 @@ import java.util.concurrent.CountDownLatch;
@EnableReactor
@Log
class Runner implements CommandLineRunner {
@Autowired
Reactor reactor
private CountDownLatch latch = new CountDownLatch(1)
@PostConstruct
void init() {
log.info "Registering consumer"
@@ -21,12 +21,10 @@ class Runner implements CommandLineRunner {
log.info "Notified Phil"
latch.await()
}
@Selector(reactor="reactor", value="hello")
void receive(String data) {
log.info "Hello ${data}"
latch.countDown()
}
}
}