vertx-lang-scala-docs_2.12 3.4.1 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package core
  Definition Classes
    scala
-  package cli
  Definition Classes
    core
-  package datagram
  Definition Classes
    core
-  package dns
  Definition Classes
    core
-  package eventbus
  Definition Classes
    core
- DeliveryOptions
- EventBus
- EventBusOptions
- Message
- MessageConsumer
- MessageProducer
- SendContext
-  package file
  Definition Classes
    core
-  package http
  Definition Classes
    core
-  package metrics
  Definition Classes
    core
-  package net
  Definition Classes
    core
-  package parsetools
  Definition Classes
    core
-  package shareddata
  Definition Classes
    core
-  package streams
  Definition Classes
    core

p

io.vertx.scala.core

# eventbus 

#### package eventbus

 
Ordering

1. Alphabetic

Visibility

1. Public
2. All

### Type Members

1.  class DeliveryOptions extends AnyRef

   Delivery options are used to configure message delivery.

   Delivery options are used to configure message delivery.

   Delivery options allow to configure delivery timeout and message codec name, and to provide any headers that you wish to send with the message.

2.  class EventBus extends 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.

   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.

3.  class EventBusOptions extends TCPSSLOptions

   Options to configure the event bus.

4.  class Message [T] extends AnyRef

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

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

   Messages have a io.vertx.scala.core.eventbus.Message#body, which can be null, and also io.vertx.scala.core.eventbus.Message#headers, which can be empty.

   If the message was sent specifying a reply handler it will also have a io.vertx.scala.core.eventbus.Message#replyAddress. In that case the message can be replied to using that reply address, or, more simply by just using io.vertx.scala.core.eventbus.Message#reply.

   If you want to notify the sender that processing failed, then io.vertx.scala.core.eventbus.Message#fail can be called.

5.  class MessageConsumer [T] extends ReadStream[Message[T]]

   An event bus consumer object representing a stream of message to an io.vertx.scala.core.eventbus.EventBus address that can be read from.

   An event bus consumer object representing a stream of message to an io.vertx.scala.core.eventbus.EventBus address that can be read from.

   The io.vertx.scala.core.eventbus.EventBus#consumer or io.vertx.scala.core.eventbus.EventBus#localConsumer creates a new consumer, the returned consumer is not yet registered against the event bus. Registration is effective after the io.vertx.scala.core.eventbus.MessageConsumer#handler method is invoked.

   The consumer is unregistered from the event bus using the io.vertx.scala.core.eventbus.MessageConsumer#unregister method or by calling the io.vertx.scala.core.eventbus.MessageConsumer#handler with a null value..

6.  class MessageProducer [T] extends WriteStream[T]

   Represents a stream of message that can be written to.

7.  class SendContext [T] extends AnyRef

   Encapsulates a message being sent from Vert.x.

   Encapsulates a message being sent from Vert.x. Used with event bus interceptors

### Value Members

1.  object DeliveryOptions
2.  object EventBus
3.  object EventBusOptions
4.  object Message
5.  object MessageConsumer
6.  object MessageProducer
7.  object SendContext

### Ungrouped