Java io.vertx.core.eventbus EventBus fields, constructors, methods, implement or subclass

Example usage for Java io.vertx.core.eventbus EventBus fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.vertx.core.eventbus EventBus.

The text is from its open source code.

Method

MessageConsumerconsumer(String address)
Create a message consumer against the specified address.
MessageConsumerconsumer(String address, Handler> handler)
Create a consumer and register it against the specified address.
MessageConsumerlocalConsumer(String address)
Like #consumer(String) but the address won't be propagated across the cluster.
MessageConsumerlocalConsumer(String address, Handler> handler)
Like #consumer(String,Handler) but the address won't be propagated across the cluster.
EventBuspublish(String address, @Nullable Object message)
Publish a message.

The message will be delivered to all handlers registered to the address.

EventBuspublish(String address, @Nullable Object message, DeliveryOptions options)
Like #publish(String,Object) but specifying options that can be used to configure the delivery.
EventBusregisterCodec(MessageCodec codec)
Register a message codec.
EventBusregisterDefaultCodec(Class clazz, MessageCodec codec)
Register a default message codec.
EventBussend(String address, @Nullable Object message, DeliveryOptions options)
Like #send(String,Object) but specifying options that can be used to configure the delivery.
EventBussend(String address, @Nullable Object message)
Sends a message.