Class ConnectionInitEvent

java.lang.Object
io.vertx.mutiny.core.Promise<Object>
io.vertx.mutiny.ext.web.handler.graphql.ws.ConnectionInitEvent
All Implemented Interfaces:
MutinyDelegate

public class ConnectionInitEvent extends Promise<Object> implements MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
See Also:
  • ConnectionInitEvent
  • Field Details

  • Constructor Details

    • ConnectionInitEvent

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

      public ConnectionInitEvent(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.graphql.ws.ConnectionInitEvent 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
      Overrides:
      getDelegate in class Promise<Object>
      Returns:
      the delegate instance
    • future

      @CheckReturnValue public io.smallrye.mutiny.Uni<Object> 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.

      Overrides:
      future in class Promise<Object>
      Returns:
      A Uni representing the asynchronous result of this operation.
      See Also:
      • Promise.future()
    • futureAndAwait

      public Object futureAndAwait()

      Unlike the bare Vert.x variant, this method returns a Object. 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).

      Overrides:
      futureAndAwait in class Promise<Object>
      Returns:
      The operation result
      See Also:
      • Promise.future()
    • futureAndForget

      public ConnectionInitEvent futureAndForget()

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

      Overrides:
      futureAndForget in class Promise<Object>
      Returns:
      The current instance to chain operations if needed.
      See Also:
      • Promise.future()
    • message

      public Message message()
      Provides MessageType#CONNECTION_INIT message content.
      Returns:
      message
    • newInstance

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

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

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

      public String toString()
      Overrides:
      toString in class Promise<Object>