Class BaseBridgeEvent

  • Direct Known Subclasses:
    BridgeEvent, BridgeEvent

    public class BaseBridgeEvent
    extends Promise<Boolean>
    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.

    • Constructor Detail

      • BaseBridgeEvent

        public BaseBridgeEvent​(Object delegate)
    • Method Detail

      • complete

        public void complete​(Boolean 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.

        Overrides:
        complete in class Promise<Boolean>
        Parameters:
        result - the result
      • future

        public Future<Boolean> future()
        Overrides:
        future in class Promise<Boolean>
        Returns:
        the associated with this promise, it can be used to be aware of the promise completion
      • getRawMessage

        public JsonObject 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(io.vertx.core.json.JsonObject) should be called with the new message.
        Returns:
        the raw JSON message for the event
      • setRawMessage

        public BaseBridgeEvent setRawMessage​(JsonObject message)
        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