| Package | Description |
|---|---|
| org.jacpfx.vertx.event.eventbus.basic | |
| org.jacpfx.vertx.event.response | |
| org.jacpfx.vertx.event.response.basic | |
| org.jacpfx.vertx.event.util |
| Modifier and Type | Method and Description |
|---|---|
ExecuteEventbusBasicByteResponse |
EventbusBridgeResponse.mapToByteResponse(ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> byteFunction)
Map Response from event-bus call to REST response
|
| Modifier and Type | Method and Description |
|---|---|
ExecuteEventbusBasicByteResponse |
EventbusResponse.byteResponse(ThrowableFutureConsumer<byte[]> byteConsumer)
Returns a byte array to the target type
|
| Modifier and Type | Class and Description |
|---|---|
class |
ExecuteEventbusBasicByteCircuitBreaker
Created by Andy Moncsek on 12.01.16.
|
| Modifier and Type | Method and Description |
|---|---|
ExecuteEventbusBasicByteResponse |
ExecuteEventbusBasicByteCircuitBreaker.closeCircuitBreaker(long circuitBreakerTimeout)
Define a timeout to release the stateful circuit breaker.
|
ExecuteEventbusBasicByteResponse |
ExecuteEventbusBasicByteResponse.onError(java.util.function.Consumer<Throwable> errorHandler)
This is an intermediate error method, the error will be passed along the chain (onFailurePass or simply an error)
|
ExecuteEventbusBasicByteResponse |
ExecuteEventbusBasicByteResponse.onFailureRespond(ThrowableErrorConsumer<Throwable,byte[]> onFailureRespond)
defines an action for errors in byte responses, you can handle the error and return an alternate createResponse value
|
ExecuteEventbusBasicByteResponse |
ExecuteEventbusBasicByteResponse.timeout(long timeout)
Defines how long a method can be executed before aborted.
|
| Modifier and Type | Method and Description |
|---|---|
static ExecuteEventbusBasicByteResponse |
EventbusByteExecutionUtil.mapToByteResponse(String _methodId,
String _targetId,
Object _message,
ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> _byteFunction,
io.vertx.core.eventbus.DeliveryOptions _requestOptions,
io.vertx.core.Vertx _vertx,
Throwable _failure,
java.util.function.Consumer<Throwable> _errorMethodHandler,
io.vertx.core.eventbus.Message<Object> _requestMessage,
ThrowableFutureConsumer<byte[]> _byteConsumer,
java.util.function.Consumer<Throwable> _errorHandler,
ThrowableErrorConsumer<Throwable,byte[]> _onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions _responseDeliveryOptions,
int _retryCount,
long _timeout,
long _circuitBreakerTimeout)
create execution chain for event-bus request and reply to request event
|
Copyright © 2017. All rights reserved.