public class EventBusHookListener extends Object
This class assists in listening for messages arriving on the event bus
via the EventBusHook.
| Constructor and Description |
|---|
EventBusHookListener(String address,
org.vertx.java.core.eventbus.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
EventBusHookListener |
receiveHandler(org.vertx.java.core.Handler receiveHandler)
Sets a receive handler.
|
EventBusHookListener |
sendHandler(org.vertx.java.core.Handler sendHandler)
Sets a send handler.
|
EventBusHookListener |
start()
Starts the hook listener, registering a handler on the event bus.
|
EventBusHookListener |
start(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Starts the hook listener, registering a handler on the event bus.
|
EventBusHookListener |
startHandler(org.vertx.java.core.Handler<InstanceContext> startHandler)
Sets a start handler.
|
EventBusHookListener |
stopHandler(org.vertx.java.core.Handler<InstanceContext> stopHandler)
Sets a stop handler.
|
public EventBusHookListener(String address, org.vertx.java.core.eventbus.EventBus eventBus)
public EventBusHookListener start()
public EventBusHookListener start(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
doneHandler - An asynchronous handler to be called once the listener
handler has been registered on the event bus.public EventBusHookListener startHandler(org.vertx.java.core.Handler<InstanceContext> startHandler)
startHandler - A start handler.public EventBusHookListener receiveHandler(org.vertx.java.core.Handler receiveHandler)
receiveHandler - A receive handler.public EventBusHookListener sendHandler(org.vertx.java.core.Handler sendHandler)
sendHandler - A send handler.public EventBusHookListener stopHandler(org.vertx.java.core.Handler<InstanceContext> stopHandler)
stopHandler - A stop handler.Copyright © 2013-2014. All Rights Reserved.