public class BridgeEvent extends BaseBridgeEvent
Please consult the documentation for a full explanation.
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<BridgeEvent> |
__TYPE_ARG |
__typeArg_0
Constructor and Description |
---|
BridgeEvent(BridgeEvent delegate) |
BridgeEvent(Object delegate) |
Modifier and Type | Method and Description |
---|---|
void |
complete(Boolean result)
Set the result.
|
boolean |
equals(Object o) |
Future<Boolean> |
future() |
BridgeEvent |
getDelegate() |
int |
hashCode() |
static BridgeEvent |
newInstance(BridgeEvent arg) |
BridgeEvent |
setRawMessage(JsonObject message)
Set the raw JSON message for the event.
|
SockJSSocket |
socket()
Get the SockJSSocket instance corresponding to the event
|
String |
toString() |
boolean |
tryComplete(Boolean result)
Like
Promise.complete(T) but returns false when the promise is already completed instead of throwing
an IllegalStateException , it returns true otherwise. |
getRawMessage, newInstance, type
complete, fail, fail, newInstance, newInstance, promise, tryComplete, tryFail, tryFail
public static final io.vertx.lang.rx.TypeArg<BridgeEvent> __TYPE_ARG
public BridgeEvent(BridgeEvent delegate)
public BridgeEvent(Object delegate)
public String toString()
toString
in class BaseBridgeEvent
public boolean equals(Object o)
equals
in class BaseBridgeEvent
public int hashCode()
hashCode
in class BaseBridgeEvent
public BridgeEvent getDelegate()
getDelegate
in class BaseBridgeEvent
public void complete(Boolean result)
complete
in class BaseBridgeEvent
result
- the resultpublic boolean tryComplete(Boolean result)
Promise.complete(T)
but returns false
when the promise is already completed instead of throwing
an IllegalStateException
, it returns true
otherwise.tryComplete
in class BaseBridgeEvent
result
- the resultfalse
when the future is already completedpublic Future<Boolean> future()
future
in class BaseBridgeEvent
public BridgeEvent setRawMessage(JsonObject message)
setRawMessage
in class BaseBridgeEvent
message
- the raw messagepublic SockJSSocket socket()
public static BridgeEvent newInstance(BridgeEvent arg)
Copyright © 2020 Eclipse. All rights reserved.