# Class: PacketWritestream

## vertx-js/packet_writestream~ PacketWritestream

#### new PacketWritestream()

  Source:
    - packet_writestream.js, line 30

### Methods

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

  ##### Parameters:

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

  Source:
    - packet_writestream.js, line 100

  ##### Returns:

  Type
    PacketWritestream

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

  ##### Parameters:

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

  Source:
    - packet_writestream.js, line 56

  ##### Returns:

  Type
    PacketWritestream

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

  ##### Parameters:

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

  Source:
    - packet_writestream.js, line 86

  ##### Returns:

  Type
    PacketWritestream

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

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `data` | Buffer |

  Source:
    - packet_writestream.js, line 72

  ##### Returns:

  Type
    PacketWritestream

#### writeQueueFull() → {boolean}

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

  ##### Returns:

  true if write queue is full
  Type
    boolean