# Class: Pump

## vertx-js/pump~ Pump

#### new Pump()

  Source:
    - pump.js, line 30

### Methods

#### numberPumped() → {number}

  Return the total number of items pumped by this pump.
  Source:
    - pump.js, line 87

  ##### Returns:

  Type
    number

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

  Set the write queue max size to `maxSize`

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `maxSize` | number | the max size

  Source:
    - pump.js, line 42

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    Pump

#### start() → {Pump}

  Start the Pump. The Pump can be started and stopped multiple times.
  Source:
    - pump.js, line 57

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    Pump

#### stop() → {Pump}

  Stop the Pump. The Pump can be started and stopped multiple times.
  Source:
    - pump.js, line 72

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    Pump