public class EventbusHandler extends Object
Message , the EventbusRequest , the EventbusResponse and the EventbusBridgeRequest.| Constructor and Description |
|---|
EventbusHandler(String methodId,
io.vertx.core.eventbus.Message<Object> message,
io.vertx.core.Vertx vertx,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler)
The constructor initialize the Eventbus Handler
|
| Modifier and Type | Method and Description |
|---|---|
EventbusBridgeRequest |
eventBusRequest()
Starts the event-bus bridge chain to send a message and to use the response of this message to create the main response
|
io.vertx.core.eventbus.Message<Object> |
message()
Returns the message to respond to
|
EventbusRequest |
request()
Returns the wrapped message to get access to message body
|
EventbusResponse |
response()
Starts the response chain to respond to message
|
public EventbusHandler(String methodId, io.vertx.core.eventbus.Message<Object> message, io.vertx.core.Vertx vertx, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler)
methodId - the method identifiermessage - the message to respond tovertx - the vertx instancefailure - the failure thrown while task execution or messagingerrorMethodHandler - the error-method handlerpublic io.vertx.core.eventbus.Message<Object> message()
Messagepublic EventbusRequest request()
EventbusRequestpublic EventbusResponse response()
EventbusResponsepublic EventbusBridgeRequest eventBusRequest()
EventbusBridgeRequestCopyright © 2017. All rights reserved.