public class EventbusResponseBlocking extends Object
| Constructor and Description |
|---|
EventbusResponseBlocking(String methodId,
io.vertx.core.eventbus.Message<Object> message,
VxmsShared vxmsShared,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler)
The constructor to pass all needed members
|
| Modifier and Type | Method and Description |
|---|---|
ExecuteEventbusByteResponse |
byteResponse(ThrowableSupplier<byte[]> byteSupplier)
Retunrs a byte array to the target type
|
ExecuteEventbusObjectResponse |
objectResponse(ThrowableSupplier<Serializable> objectSupplier,
Encoder encoder)
Retunrs a Serializable to the target type
|
ExecuteEventbusStringResponse |
stringResponse(ThrowableSupplier<String> stringSupplier)
Retunrs a String to the target type
|
public EventbusResponseBlocking(String methodId, io.vertx.core.eventbus.Message<Object> message, VxmsShared vxmsShared, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler)
methodId - the method identifiermessage - the event-bus message to respond tovxmsShared - the vxmsShared instance, containing the Vertx instance and other shared
objects per instancefailure - the failure thrown while task executionerrorMethodHandler - the error handlerpublic ExecuteEventbusByteResponse byteResponse(ThrowableSupplier<byte[]> byteSupplier)
byteSupplier - supplier which returns the createResponse value as byte arrayExecuteEventbusByteResponsepublic ExecuteEventbusStringResponse stringResponse(ThrowableSupplier<String> stringSupplier)
stringSupplier - supplier which returns the createResponse value as StringExecuteEventbusStringResponsepublic ExecuteEventbusObjectResponse objectResponse(ThrowableSupplier<Serializable> objectSupplier, Encoder encoder)
objectSupplier - supplier which returns the createResponse value as Serializableencoder - the encoder to serialize the response objectExecuteEventbusObjectResponseCopyright © 2017. All rights reserved.