public class EventbusBridgeBlockingResponse extends Object
| Constructor and Description |
|---|
EventbusBridgeBlockingResponse(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 options)
Pass all parameters to execute the chain
|
| Modifier and Type | Method and Description |
|---|---|
ExecuteEventbusByteResponse |
mapToByteResponse(ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> byteFunction)
Maps the event-bus response to a byte response for the REST request
|
ExecuteEventbusObjectResponse |
mapToObjectResponse(ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,Serializable> objectFunction,
Encoder encoder)
Maps the event-bus response to a byte response for the REST request
|
ExecuteEventbusStringResponse |
mapToStringResponse(ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,String> stringFunction)
Maps the event-bus response to a String response for the REST request
|
public EventbusBridgeBlockingResponse(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 options)
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 messageoptions - the event-bus delivery optionspublic ExecuteEventbusStringResponse mapToStringResponse(ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,String> stringFunction)
stringFunction - the function, that takes the response message from the event bus and that
maps it to a valid eventbus responseExecuteEventbusStringResponsepublic ExecuteEventbusByteResponse mapToByteResponse(ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> byteFunction)
byteFunction - the function, that takes the response message from the event bus and that
maps it to a valid eventbus responseExecuteEventbusByteResponsepublic ExecuteEventbusObjectResponse mapToObjectResponse(ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,Serializable> objectFunction, Encoder encoder)
objectFunction - the function, that takes the response message from the event bus and that
maps it to a valid eventbus responseencoder - the encoder to serialize your object responseExecuteEventbusObjectResponseCopyright © 2017. All rights reserved.