Class MessageProducer<T>


  • public class MessageProducer<T>
    extends Object
    Represents a stream of message that can be written to.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • MessageProducer

        public MessageProducer​(Object delegate,
                               TypeArg<T> typeArg_0)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • deliveryOptions

        public MessageProducer<T> deliveryOptions​(DeliveryOptions options)
        Update the delivery options of this producer.
        Parameters:
        options - the new options
        Returns:
        this producer object
      • address

        public String address()
        Returns:
        The address to which the producer produces messages.
      • write

        public void write​(T body,
                          Handler<AsyncResult<Void>> handler)
        Write a message to the event-bus, either sending or publishing. The handler completion depends on the producer type:
        • send or request: the handler is completed successfully if the message has been written; otherwise, the handler is failed
        • publish: the handler is failed if there is no recipient; otherwise, the handler is completed successfully
        In any case, a successfully completed handler is not a delivery guarantee.
        Parameters:
        body - the message body
        handler -
      • write

        public void write​(T body)
        Write a message to the event-bus, either sending or publishing. The handler completion depends on the producer type:
        • send or request: the handler is completed successfully if the message has been written; otherwise, the handler is failed
        • publish: the handler is failed if there is no recipient; otherwise, the handler is completed successfully
        In any case, a successfully completed handler is not a delivery guarantee.
        Parameters:
        body - the message body
      • rxWrite

        public io.reactivex.Completable rxWrite​(T body)
        Write a message to the event-bus, either sending or publishing. The handler completion depends on the producer type:
        • send or request: the handler is completed successfully if the message has been written; otherwise, the handler is failed
        • publish: the handler is failed if there is no recipient; otherwise, the handler is completed successfully
        In any case, a successfully completed handler is not a delivery guarantee.
        Parameters:
        body - the message body
        Returns: