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.
Anything
no subtypes hierarchy
Initializer |
EventBus(EventBus unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
addInterceptor | shared default EventBus addInterceptor(Anything(SendContext<unknown>) interceptor) Add an interceptor that will be called whenever a message is sent from Vert.x Parameters:
|
consumer | shared default MessageConsumer<T?> consumer<T>(String address) Create a message consumer against the specified address. The returned consumer is not yet registered at the address, registration will be effective when handler is called. Parameters:
|
consumer | shared default MessageConsumer<T?> consumer<T>(String address, Anything(Message<T?>) handler) Create a consumer and register it against the specified address. Parameters:
|
isMetricsEnabled | shared actual default Boolean isMetricsEnabled() Whether the metrics are enabled for this measured object Refines Measured.isMetricsEnabled |
localConsumer | shared default MessageConsumer<T?> localConsumer<T>(String address) Like consumer but the address won't be propagated across the cluster. Parameters:
|
localConsumer | shared default MessageConsumer<T?> localConsumer<T>(String address, Anything(Message<T?>) handler) Like consumer but the address won't be propagated across the cluster. Parameters:
|
publish | shared default EventBus publish(String address, Object? message) Publish a message. The message will be delivered to all handlers registered to the address. Parameters:
|
publish | shared default EventBus publish(String address, Object? message, DeliveryOptions options) Like publish but specifying Parameters:
|
publisher | shared default MessageProducer<T?> publisher<T>(String address) |
publisher | shared default MessageProducer<T?> publisher<T>(String address, DeliveryOptions options) Like publisher but specifying delivery options that will be used for configuring the delivery of the message. Parameters:
|
removeInterceptor | shared default EventBus removeInterceptor(Anything(SendContext<unknown>) interceptor) Remove an interceptor Parameters:
|
send | shared default EventBus send(String address, Object? message) Sends a message. The message will be delivered to at most one of the handlers registered to the address. Parameters:
|
send | shared default EventBus send(String address, Object? message, DeliveryOptions options) Like send but specifying Parameters:
|
send | shared default EventBus send<T>(String address, Object? message, Anything(Throwable|Message<T?>) replyHandler) Like send but specifying a Parameters:
|
send | shared default EventBus send<T>(String address, Object? message, DeliveryOptions options, Anything(Throwable|Message<T?>) replyHandler) Like send but specifying a Parameters:
|
sender | shared default MessageProducer<T?> sender<T>(String address) |
sender | shared default MessageProducer<T?> sender<T>(String address, DeliveryOptions options) Like sender but specifying delivery options that will be used for configuring the delivery of the message. Parameters:
|
Inherited Methods |
Methods inherited from: Object equals |
Methods inherited from: Measured |