# Class: BaseBridgeEvent

## vertx-bridge-common-js/base_bridge_event~ BaseBridgeEvent

#### new BaseBridgeEvent()

Represents an event that occurs on the event bus bridge.

Please consult the documentation for a full explanation.

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 32

### Methods

#### cause() → {todo}

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 148

##### Returns:

Type
  todo

#### complete(arg0)

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | boolean |

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 76

#### completer() → {function}

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 239

##### Returns:

Type
  function

#### compose(handler, next) → {Future}

##### Parameters:

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

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 188

##### Returns:

Type
  Future

#### fail(arg0)

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 90

#### failed() → {boolean}

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 174

##### Returns:

Type
  boolean

#### getRawMessage() → {Object}

Get the raw JSON message for the event. This will be null for SOCKET_CREATED or SOCKET_CLOSED events as there is no message involved. If the returned message is modified, BaseBridgeEvent#setRawMessage should be called with the new message.

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 321

##### Returns:

the raw JSON message for the event

Type
  Object

#### isComplete() → {boolean}

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 44

##### Returns:

Type
  boolean

#### map(value) → {Future}

##### Parameters:

Name | Type | Description
--- | --- | ---
`value` | Object |

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 208

##### Returns:

Type
  Future

#### mapEmpty() → {Future}

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 226

##### Returns:

Type
  Future

#### otherwise(value) → {Future}

##### Parameters:

Name | Type | Description
--- | --- | ---
`value` | boolean |

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 271

##### Returns:

Type
  Future

#### otherwiseEmpty() → {Future}

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 289

##### Returns:

Type
  Future

#### recover(mapper) → {Future}

##### Parameters:

Name | Type | Description
--- | --- | ---
`mapper` | todo |

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 255

##### Returns:

Type
  Future

#### result() → {boolean}

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 135

##### Returns:

Type
  boolean

#### setHandler(arg0) → {Future}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | function |

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 57

##### Returns:

Type
  Future

#### setRawMessage(message) → {BaseBridgeEvent}

Get the raw JSON message for the event. This will be null for SOCKET_CREATED or SOCKET_CLOSED events as there is no message involved.

##### Parameters:

Name | Type | Description
--- | --- | ---
`message` | Object | the raw message

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 336

##### Returns:

this reference, so it can be used fluently

Type
  BaseBridgeEvent

#### succeeded() → {boolean}

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 161

##### Returns:

Type
  boolean

#### tryComplete(arg0) → {boolean}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | boolean |

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 105

##### Returns:

Type
  boolean

#### tryFail(arg0) → {boolean}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 120

##### Returns:

Type
  boolean

#### type() → {Object}

Source:
  - vertx-bridge-common-js/base_bridge_event.js, line 302

##### Returns:

the type of the event

Type
  Object