public class EventbusBridgeRequest extends Object
| Constructor and Description |
|---|
EventbusBridgeRequest(String methodId,
io.vertx.core.eventbus.Message<Object> requestmessage,
io.vertx.core.Vertx vertx,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler)
Pass all members to execute the chain
|
| Modifier and Type | Method and Description |
|---|---|
EventbusBridgeBlockingRequest |
blocking()
perform blocking task execution
|
protected void |
respond(Object resp,
io.vertx.core.eventbus.DeliveryOptions options) |
EventbusBridgeResponse |
send(String id,
Object message)
Send message and perform task on reply
|
EventbusBridgeResponse |
send(String id,
Object message,
io.vertx.core.eventbus.DeliveryOptions requestOptions)
Send message and perform task on reply
|
void |
sendAndRespondRequest(String id,
Object message)
Send message and redirect the event bus response directly to the initial request
|
void |
sendAndRespondRequest(String id,
Object message,
io.vertx.core.eventbus.DeliveryOptions requestOptions)
Send message and redirect the event bus response directly to the initial request
|
public EventbusBridgeRequest(String methodId, io.vertx.core.eventbus.Message<Object> requestmessage, io.vertx.core.Vertx vertx, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler)
methodId - the method identifierrequestmessage - the message to respondevertx - the vertx instancefailure - the vertx instanceerrorMethodHandler - the error-method handlerpublic EventbusBridgeResponse send(String id, Object message)
id - the target id to send tomessage - the message to sendEventbusBridgeResponsepublic EventbusBridgeResponse send(String id, Object message, io.vertx.core.eventbus.DeliveryOptions requestOptions)
id - the target id to send tomessage - the message to sendrequestOptions - the delivery options for the event bus requestEventbusBridgeResponsepublic void sendAndRespondRequest(String id, Object message)
id - the target id to send tomessage - the message to sendpublic void sendAndRespondRequest(String id, Object message, io.vertx.core.eventbus.DeliveryOptions requestOptions)
id - the target id to send tomessage - the message to sendrequestOptions - the delivery options for the event bus requestprotected void respond(Object resp, io.vertx.core.eventbus.DeliveryOptions options)
public EventbusBridgeBlockingRequest blocking()
EventbusBridgeBlockingRequestCopyright © 2017. All rights reserved.