Package | Description |
---|---|
io.vertx.core |
= Vert.x Core Manual
:toc: left
At the heart of Vert.x is a set of Java APIs that we call *Vert.x Core*
https://github.com/eclipse/vert.x[Repository].
|
io.vertx.core.eventbus |
== The Event Bus
:toc: left
The
event bus is the *nervous system* of Vert.x. |
io.vertx.core.spi.metrics |
Modifier and Type | Method and Description |
---|---|
EventBus |
Vertx.eventBus()
Get the event bus object.
|
Modifier and Type | Method and Description |
---|---|
EventBus |
EventBus.addInterceptor(Handler<SendContext> interceptor)
Add an interceptor that will be called whenever a message is sent from Vert.x
|
EventBus |
EventBus.publish(String address,
Object message)
Publish a message.
|
EventBus |
EventBus.publish(String address,
Object message,
DeliveryOptions options)
Like
publish(String, Object) but specifying options that can be used to configure the delivery. |
EventBus |
EventBus.registerCodec(MessageCodec codec)
Register a message codec.
|
<T> EventBus |
EventBus.registerDefaultCodec(Class<T> clazz,
MessageCodec<T,?> codec)
Register a default message codec.
|
EventBus |
EventBus.removeInterceptor(Handler<SendContext> interceptor)
Remove an interceptor
|
EventBus |
EventBus.send(String address,
Object message)
Sends a message.
|
EventBus |
EventBus.send(String address,
Object message,
DeliveryOptions options)
Like
send(String, Object) but specifying options that can be used to configure the delivery. |
<T> EventBus |
EventBus.send(String address,
Object message,
DeliveryOptions options,
Handler<AsyncResult<Message<T>>> replyHandler)
Like
send(String, Object, DeliveryOptions) but specifying a replyHandler that will be called if the recipient
subsequently replies to the message. |
<T> EventBus |
EventBus.send(String address,
Object message,
Handler<AsyncResult<Message<T>>> replyHandler)
Like
send(String, Object) but specifying a replyHandler that will be called if the recipient
subsequently replies to the message. |
EventBus |
EventBus.unregisterCodec(String name)
Unregister a message codec.
|
EventBus |
EventBus.unregisterDefaultCodec(Class clazz)
Unregister a default message codec.
|
Modifier and Type | Method and Description |
---|---|
EventBusMetrics |
VertxMetrics.createMetrics(EventBus eventBus)
Provides the event bus metrics SPI when the event bus is created.
|
default void |
VertxMetrics.eventBusInitialized(EventBus bus)
Metrics cannot use the event bus in their constructor as the event bus is not yet initialized.
|
Copyright © 2018 Eclipse. All rights reserved.