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.
  • Field Details

    • message

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

    • DefaultAsyncEventReplier

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

    • handle

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