# Class: MessageProducer

## vertx-js/message_producer~ MessageProducer

#### new MessageProducer()

  Represents a stream of message that can be written to.

  Source:
    - message_producer.js, line 32

### Methods

#### address() → {string}

  Source:
    - message_producer.js, line 132

  ##### Returns:

  - The address to which the producer produces messages.
  - Type
      string

#### deliveryOptions(options) → {MessageProducer}

  Update the delivery options of this producer.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `options` | Object | the new options

  Source:
    - message_producer.js, line 117

  ##### Returns:

  this producer object
  Type
    MessageProducer

#### drainHandler(handler) → {MessageProducer}

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `handler` | function |

  Source:
    - message_producer.js, line 102

  ##### Returns:

  Type
    MessageProducer

#### exceptionHandler(handler) → {MessageProducer}

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `handler` | function |

  Source:
    - message_producer.js, line 58

  ##### Returns:

  Type
    MessageProducer

#### setWriteQueueMaxSize(maxSize) → {MessageProducer}

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `maxSize` | number |

  Source:
    - message_producer.js, line 88

  ##### Returns:

  Type
    MessageProducer

#### write(data) → {MessageProducer}

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `data` | Object |

  Source:
    - message_producer.js, line 74

  ##### Returns:

  Type
    MessageProducer

#### writeQueueFull() → {boolean}

  This will return `true` if there are more bytes in the write queue than the value set using MessageProducer#setWriteQueueMaxSize
  Source:
    - message_producer.js, line 45

  ##### Returns:

  true if write queue is full
  Type
    boolean