vertx-lang-scala-docs_2.12 3.8.0 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 eventbus
  Definition Classes
    ext
-  package bridge
  Definition Classes
    eventbus
-  package tcp
  Definition Classes
    bridge
- BridgeEvent
- TcpEventBusBridge

c

io.vertx.scala.ext.eventbus.bridge.tcp

# BridgeEvent 

###
Companion object BridgeEvent

#### class BridgeEvent extends BaseBridgeEvent

Represents an event that occurs on the event bus bridge.

Please consult the documentation for a full explanation.

Linear Supertypes
BaseBridgeEvent, Promise[Boolean], AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

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

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new BridgeEvent(_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
     BridgeEvent → 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
      BridgeEvent → 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

    Definition Classes
      BaseBridgeEvent
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): BridgeEvent

    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

    Definition Classes
      BridgeEvent → BaseBridgeEvent
23.  def socket(): NetSocket

    Get the SockJSSocket instance corresponding to the event * @return the SockJSSocket instance

24.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
25.  def toString(): String
    Definition Classes
      AnyRef → Any
26.  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
      BridgeEvent → BaseBridgeEvent → Promise
27.  def tryComplete(): Boolean

    Calls `tryComplete(null)`.

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

    Definition Classes
      Promise
28.  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
29.  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
30.  def type(): BridgeEventType

    returns

      the type of the event

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

### Inherited from BaseBridgeEvent

### Inherited from Promise[Boolean]

### Inherited from AnyRef

### Inherited from Any

### Ungrouped