Package kos.core.events
Interface EventHandler<T>
- All Superinterfaces:
io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>
- All Known Implementing Classes:
AsyncEventHandler,SyncEventHandler
public interface EventHandler<T>
extends io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>
Handles received events asynchronously. It will always acknowledge to the
publisher that the process has been finished, being it a successful attempt
or not. Publishers will be able to receive the reply only when using Vert.x
EventLoop Req/Reply pattern.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> EventHandler<T>default voidstatic <T> EventHandler<T>io.vertx.core.Future<Void>
-
Method Details
-
handle
- Specified by:
handlein interfaceio.vertx.core.Handler<T>
-
tryHandle
-
sync
-
async
static <T> EventHandler<T> async(Function<io.vertx.core.eventbus.Message<T>, io.vertx.core.Future<Void>> handler)
-