Package kos.core.events
Class DefaultAsyncEventReplier<T>
- java.lang.Object
-
- kos.core.events.DefaultAsyncEventReplier<T>
-
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>>
public class DefaultAsyncEventReplier<T> extends Object implements io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>>
Automatically replies to async events received from EventBus. In case of success, it will reply the address. In case of failure it will notify the sender, relaying the cause as a response.
-
-
Constructor Summary
Constructors Constructor Description DefaultAsyncEventReplier(io.vertx.core.eventbus.Message<T> message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private StringconvertThrowableToMessage(Throwable throwable)voidhandle(io.vertx.core.AsyncResult<Void> result)
-