vertx / io.vertx.core.eventbus

Package io.vertx.core.eventbus

Types

EventBus

interface EventBus : Measured

A Vert.x event-bus is a light-weight distributed messaging system which allows different parts of your application, or different applications and services to communicate with each in a loosely coupled way.

An event-bus supports publish-subscribe messaging, point-to-point messaging and request-response messaging.

Message delivery is best-effort and messages can be lost if failure of all or part of the event bus occurs.

Please refer to the documentation for more information on the event bus.

EventBusOptionsConverter

open class EventBusOptionsConverter

Converter for io.vertx.core.eventbus.EventBusOptions. NOTE: This class has been automatically generated from the io.vertx.core.eventbus.EventBusOptions original class using Vert.x codegen.

Message

interface Message<T : Any>

Represents a message that is received from the event bus in a handler.

Messages have a #body, which can be null, and also #headers, which can be empty.

If the message was sent specifying a reply handler, it can be replied to using #reply.

If you want to notify the sender that processing failed, then #fail can be called.

ReplyFailure

class ReplyFailure

Represents the type of reply failure

Exceptions

ReplyException

open class ReplyException : VertxException

Represents the failure of a message send.

If a message was sent specifying a reply handler and the message delivery fails, a failure will be provided to the reply handler and the cause of the failure will be an instance of this.