Class BaseBridgeEvent
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
- Direct Known Subclasses:
BridgeEvent, BridgeEvent, BridgeEvent
Represents an event that occurs on the event bus bridge.
Please consult the documentation for a full explanation.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsFields inherited from class Promise
__typeArg_0 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSet the result.voidbooleanfuture()Get the raw JSON message for the event.voidhandle(AsyncResult<Boolean> asyncResult) Succeed or fail this promise with the event.inthashCode()static BaseBridgeEventrxFuture()setRawMessage(JsonObject message) Override the raw JSON message for the event.voidtoString()booleantryComplete(Boolean result) LikePromise.complete(T, Throwable)but returnsfalsewhen the promise is already completed instead of throwing anIllegalStateException, it returnstrueotherwise.type()Methods inherited from class Promise
complete, fail, fail, newInstance, newInstance, promise, succeed, tryComplete, tryFail, tryFail
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
BaseBridgeEvent
-
BaseBridgeEvent
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classPromise<Boolean>
-
complete
-
complete
-
succeed
-
tryComplete
LikePromise.complete(T, Throwable)but returnsfalsewhen the promise is already completed instead of throwing anIllegalStateException, it returnstrueotherwise.- Overrides:
tryCompletein classPromise<Boolean>- Parameters:
result- the result- Returns:
falsewhen the future is already completed
-
future
-
rxFuture
-
type
- Returns:
- the type of the event
-
getRawMessage
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,setRawMessage(JsonObject)should be called with the new message.- Returns:
- the raw JSON message for the event
-
setRawMessage
Override the raw JSON message for the event. It is ideally using it when publish back message from server to client in RECEIVE event- Parameters:
message- the raw message- Returns:
- this reference, so it can be used fluently
-
handle
Succeed or fail this promise with the event. -
newInstance
-