Class MessageProducer<T>
java.lang.Object
io.vertx.rxjava3.core.eventbus.MessageProducer<T>
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<MessageProducer> final io.vertx.lang.rx.TypeArg<T> -
Constructor Summary
ConstructorsConstructorDescriptionMessageProducer(MessageProducer delegate) MessageProducer(Object delegate, io.vertx.lang.rx.TypeArg<T> typeArg_0) -
Method Summary
Modifier and TypeMethodDescriptionaddress()close()Closes the producer, this method should be called when the message producer is not used anymore.deliveryOptions(DeliveryOptions options) Update the delivery options of this producer.booleaninthashCode()static <T> MessageProducer<T> static <T> MessageProducer<T> newInstance(MessageProducer arg, io.vertx.lang.rx.TypeArg<T> __typeArg_T) rxClose()Closes the producer, this method should be called when the message producer is not used anymore.Write a message to the event-bus, either sending or publishing.toString()Write a message to the event-bus, either sending or publishing.
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
-
Constructor Details
-
MessageProducer
-
MessageProducer
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
deliveryOptions
Update the delivery options of this producer.- Parameters:
options- the new options- Returns:
- this producer object
-
address
- Returns:
- The address to which the producer produces messages.
-
write
Write a message to the event-bus, either sending or publishing. The returned completion depends on the producer type:- send or request: the future is completed successfully if the message has been written; otherwise, the future is failed
- publish: the future is failed if there is no recipient; otherwise, the future is completed successfully
- Parameters:
body- the message body- Returns:
-
rxWrite
Write a message to the event-bus, either sending or publishing. The returned completion depends on the producer type:- send or request: the future is completed successfully if the message has been written; otherwise, the future is failed
- publish: the future is failed if there is no recipient; otherwise, the future is completed successfully
- Parameters:
body- the message body- Returns:
-
close
Closes the producer, this method should be called when the message producer is not used anymore.- Returns:
- a future completed with the result
-
rxClose
Closes the producer, this method should be called when the message producer is not used anymore.- Returns:
- a future completed with the result
-
newInstance
-
newInstance
public static <T> MessageProducer<T> newInstance(MessageProducer arg, io.vertx.lang.rx.TypeArg<T> __typeArg_T)
-