vertx-lang-scala-docs_2.12 3.9.1 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package ext
  Definition Classes
    scala
-  package bridge
  Definition Classes
    ext
- BaseBridgeEvent
- BridgeOptions
- PermittedOptions

c

io.vertx.scala.ext.bridge

# BaseBridgeEvent 

###
Companion object BaseBridgeEvent

#### class BaseBridgeEvent extends Promise[Boolean]

Represents an event that occurs on the event bus bridge.

Please consult the documentation for a full explanation.

Linear Supertypes
Promise[Boolean], AnyRef, Any
Known Subclasses
BridgeEvent, BridgeEvent
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. BaseBridgeEvent
2. Promise
3. AnyRef
4. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new BaseBridgeEvent(_asJava: AnyRef)

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
5.  def asJava: AnyRef
   Definition Classes
     Promise
6.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
7.  def complete(arg0: Boolean): Unit

   Set the result.

   Set the result. Any handler will be called, if there is one, and the promise will be marked as completed.

   Any handler set on the associated promise will be called. * @param result the result

   Definition Classes
     BaseBridgeEvent → Promise
8.  def complete(): Unit

   Calls `complete(null)`

   Calls `complete(null)`

   Definition Classes
     Promise
9.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
10.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
11.  def fail(message: String): Unit

    Calls io.vertx.scala.core.Promise#fail with the `message`.

    Calls io.vertx.scala.core.Promise#fail with the `message`. * @param message the failure message

    Definition Classes
      Promise
12.  def fail(cause: Throwable): Unit

    Set the failure.

    Set the failure. Any handler will be called, if there is one, and the future will be marked as completed. * @param cause the failure cause

    Definition Classes
      Promise
13.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
14.  def future(): Future[Boolean]

    returns

      the Future associated with this promise, it can be used to be aware of the promise completion

    Definition Classes
      BaseBridgeEvent → Promise
15.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
16.  def getRawMessage(): JsonObject

    Get the raw JSON message for the event.

    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, io.vertx.scala.ext.bridge.BaseBridgeEvent#setRawMessage should be called with the new message. * @return the raw JSON message for the event

17.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
18.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
19.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
20.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
21.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
22.  def setRawMessage(message: JsonObject): BaseBridgeEvent

    Get the raw JSON message for the event.

    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. * @param message the raw message

    returns

      this reference, so it can be used fluently

23.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
24.  def toString(): String
    Definition Classes
      AnyRef → Any
25.  def tryComplete(arg0: Boolean): Boolean

    Like io.vertx.scala.core.Promise#complete but returns `false` when the promise is already completed instead of throwing an IllegalStateException, it returns `true` otherwise.

    Like io.vertx.scala.core.Promise#complete but returns `false` when the promise is already completed instead of throwing an IllegalStateException, it returns `true` otherwise. * @param result the result

    returns

      `false` when the future is already completed

    Definition Classes
      BaseBridgeEvent → Promise
26.  def tryComplete(): Boolean

    Calls `tryComplete(null)`.

    Calls `tryComplete(null)`. * @return `false` when the future is already completed

    Definition Classes
      Promise
27.  def tryFail(message: String): Boolean

    Calls io.vertx.scala.core.Promise#fail with the `message`.

    Calls io.vertx.scala.core.Promise#fail with the `message`. * @param message the failure message

    returns

      false when the future is already completed

    Definition Classes
      Promise
28.  def tryFail(cause: Throwable): Boolean

    Like io.vertx.scala.core.Promise#fail but returns `false` when the promise is already completed instead of throwing an IllegalStateException, it returns `true` otherwise.

    Like io.vertx.scala.core.Promise#fail but returns `false` when the promise is already completed instead of throwing an IllegalStateException, it returns `true` otherwise. * @param cause the failure cause

    returns

      `false` when the future is already completed

    Definition Classes
      Promise
29.  def type(): BridgeEventType

    returns

      the type of the event

30.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
31.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
32.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )

### Inherited from Promise[Boolean]

### Inherited from AnyRef

### Inherited from Any

### Ungrouped