public class BaseBridgeEvent extends Promise<Boolean>
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 TypeArg<BaseBridgeEvent> |
__TYPE_ARG |
__typeArg_0
Constructor and Description |
---|
BaseBridgeEvent(io.vertx.ext.bridge.BaseBridgeEvent delegate) |
BaseBridgeEvent(Object delegate) |
Modifier and Type | Method and Description |
---|---|
void |
complete(Boolean result)
Set the result.
|
boolean |
equals(Object o) |
Future<Boolean> |
future() |
io.vertx.ext.bridge.BaseBridgeEvent |
getDelegate() |
io.vertx.core.json.JsonObject |
getRawMessage()
Get the raw JSON message for the event.
|
int |
hashCode() |
static BaseBridgeEvent |
newInstance(io.vertx.ext.bridge.BaseBridgeEvent arg) |
BaseBridgeEvent |
setRawMessage(io.vertx.core.json.JsonObject message)
Get the raw JSON message for 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. |
io.vertx.ext.bridge.BridgeEventType |
type() |
complete, fail, fail, newInstance, newInstance, promise, tryComplete, tryFail, tryFail
public static final TypeArg<BaseBridgeEvent> __TYPE_ARG
public BaseBridgeEvent(io.vertx.ext.bridge.BaseBridgeEvent delegate)
public BaseBridgeEvent(Object delegate)
public io.vertx.ext.bridge.BaseBridgeEvent getDelegate()
getDelegate
in class Promise<Boolean>
public void complete(Boolean result)
public 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 Promise<Boolean>
result
- the resultfalse
when the future is already completedpublic io.vertx.ext.bridge.BridgeEventType type()
public io.vertx.core.json.JsonObject getRawMessage()
setRawMessage(io.vertx.core.json.JsonObject)
should be called with the
new message.public BaseBridgeEvent setRawMessage(io.vertx.core.json.JsonObject message)
message
- the raw messagepublic static BaseBridgeEvent newInstance(io.vertx.ext.bridge.BaseBridgeEvent arg)
Copyright © 2020 Eclipse. All rights reserved.