class BridgeEvent extends BaseBridgeEvent
Represents an event that occurs on the event bus bridge.
Please consult the documentation for a full explanation.
- Alphabetic
- By Inheritance
- BridgeEvent
- BaseBridgeEvent
- Promise
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BridgeEvent(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: AnyRef
- Definition Classes
- Promise
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
def
complete(): Unit
Calls
complete(null)
Calls
complete(null)
- Definition Classes
- Promise
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
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
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
def
socket(): NetSocket
Get the SockJSSocket instance corresponding to the event * @return the SockJSSocket instance
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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 returnstrue
otherwise.Like io.vertx.scala.core.Promise#complete but returns
false
when the promise is already completed instead of throwing an IllegalStateException, it returnstrue
otherwise. * @param result the result- returns
false
when the future is already completed
- Definition Classes
- BridgeEvent → BaseBridgeEvent → Promise
-
def
tryComplete(): Boolean
Calls
tryComplete(null)
.Calls
tryComplete(null)
. * @returnfalse
when the future is already completed- Definition Classes
- Promise
-
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
-
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 returnstrue
otherwise.Like io.vertx.scala.core.Promise#fail but returns
false
when the promise is already completed instead of throwing an IllegalStateException, it returnstrue
otherwise. * @param cause the failure cause- returns
false
when the future is already completed
- Definition Classes
- Promise
-
def
type(): BridgeEventType
- returns
the type of the event
- Definition Classes
- BaseBridgeEvent
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )