Class BridgeEvent

java.lang.Object
io.vertx.mutiny.ext.web.handler.sockjs.BridgeEvent
All Implemented Interfaces:
MutinyDelegate

public class BridgeEvent extends Object implements MutinyDelegate
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 Mutiny-ified interface.

Author:
Tim Fox
See Also:
  • BridgeEvent
  • Field Details

  • Constructor Details

    • BridgeEvent

      public BridgeEvent(io.vertx.ext.web.handler.sockjs.BridgeEvent delegate)
      Create a new instance of BridgeEvent delegating to the given (non-null) instance of BridgeEvent.
    • BridgeEvent

      public BridgeEvent(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.sockjs.BridgeEvent getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • future

      @CheckReturnValue public io.smallrye.mutiny.Uni<Boolean> future()

      Unlike the bare Vert.x variant, this method returns a Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.

      Don't forget to subscribe on it to trigger the operation.

      Returns:
      A Uni representing the asynchronous result of this operation.
      See Also:
      • Promise.future()
    • futureAndAwait

      public Boolean futureAndAwait()

      Unlike the bare Vert.x variant, this method returns a Boolean. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

      Returns:
      The operation result
      See Also:
      • Promise.future()
    • futureAndForget

      public BridgeEvent futureAndForget()

      Unlike the bare Vert.x variant, this method ignores the Boolean result or any failure.

      Returns:
      The current instance to chain operations if needed.
      See Also:
      • Promise.future()
    • setRawMessage

      public BridgeEvent setRawMessage(io.vertx.core.json.JsonObject message)
      Set the raw JSON message for the event.
      Parameters:
      message - the raw message
      Returns:
      this reference, so it can be used fluently
    • socket

      public SockJSSocket socket()
      Get the SockJSSocket instance corresponding to the event
      Returns:
      the SockJSSocket instance
    • newInstance

      public static BridgeEvent newInstance(io.vertx.ext.web.handler.sockjs.BridgeEvent delegate)
      Creates a new instance of the BridgeEvent.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object