public class EventbusBridgeResponse extends Object
| Constructor and Description |
|---|
EventbusBridgeResponse(String methodId,
io.vertx.core.eventbus.Message<Object> requestmessage,
VxmsShared vxmsShared,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
String targetId,
Object message,
io.vertx.core.eventbus.DeliveryOptions requestOptions)
Pass all parameters to execute the chain
|
| Modifier and Type | Method and Description |
|---|---|
ExecuteEventbusBasicByteResponse |
mapToByteResponse(ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> byteFunction)
Map Response from event-bus call to REST response
|
ExecuteEventbusBasicObjectResponse |
mapToObjectResponse(ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,Serializable> objectFunction,
Encoder encoder)
Map Response from event-bus call to REST response
|
ExecuteEventbusBasicStringResponse |
mapToStringResponse(ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,String> stringFunction)
Map Response from event-bus call to REST response
|
public EventbusBridgeResponse(String methodId, io.vertx.core.eventbus.Message<Object> requestmessage, VxmsShared vxmsShared, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, String targetId, Object message, io.vertx.core.eventbus.DeliveryOptions requestOptions)
methodId - the method identifierrequestmessage - the message to respondevxmsShared - the vxmsShared instance, containing the Vertx instance and other shared
objects per instancefailure - the last failureerrorMethodHandler - the error-method handlertargetId - the event-bus message target-targetIdmessage - the event-bus messagerequestOptions - the event-bus delivery optionspublic ExecuteEventbusBasicStringResponse mapToStringResponse(ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,String> stringFunction)
stringFunction - pass io.vertx.core.AsyncResult and future to complete with a StringExecuteEventbusBasicStringResponsepublic ExecuteEventbusBasicByteResponse mapToByteResponse(ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> byteFunction)
byteFunction - pass io.vertx.core.AsyncResult and future to complete with a byte[] arrayExecuteEventbusBasicByteResponsepublic ExecuteEventbusBasicObjectResponse mapToObjectResponse(ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,Serializable> objectFunction, Encoder encoder)
objectFunction - pass io.vertx.core.AsyncResult and future to complete with a Objectencoder - the Object encoderExecuteEventbusBasicObjectResponseCopyright © 2017. All rights reserved.