Class 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.
    • Field Detail

      • message

        private final io.vertx.core.eventbus.Message<T> message
    • Constructor Detail

      • DefaultAsyncEventReplier

        public DefaultAsyncEventReplier​(io.vertx.core.eventbus.Message<T> message)
    • Method Detail

      • handle

        public void handle​(io.vertx.core.AsyncResult<Void> result)
        Specified by:
        handle in interface io.vertx.core.Handler<T>
      • convertThrowableToMessage

        private String convertThrowableToMessage​(Throwable throwable)