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
  • Field Details

  • Constructor Details

    • ConnectionInitEvent

      public ConnectionInitEvent(io.vertx.ext.web.handler.graphql.ws.ConnectionInitEvent delegate)
    • ConnectionInitEvent

      public ConnectionInitEvent(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.graphql.ws.ConnectionInitEvent getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Overrides:
      getDelegate in class Promise<Object>
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

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

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

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

      public void complete(Object result)
      Overrides:
      complete in class Promise<Object>
      Parameters:
      result - the result
    • tryComplete

      public boolean tryComplete(Object arg0)
      Overrides:
      tryComplete in class Promise<Object>
      Parameters:
      arg0 - the result
      Returns:
      false when the future is already completed
    • future

      @CheckReturnValue public io.smallrye.mutiny.Uni<Object> future()
      Description copied from class: Promise

      Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

      Overrides:
      future in class Promise<Object>
      Returns:
      the uni firing the result of the operation when completed, or a failure if the operation failed.
    • futureAndAwait

      public Object futureAndAwait()
      Description copied from class: Promise
      Blocking variant of Promise.future().

      This method waits 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 T instance produced by the operation.
    • futureAndForget

      public void futureAndForget()
      Description copied from class: Promise
      Variant of Promise.future() that ignores the result of the operation.

      This method subscribes on the result of Promise.future(), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from Promise.future() but you don't need to compose it with other operations.

      Overrides:
      futureAndForget in class Promise<Object>
    • message

      public Message message()
      Returns:
      message
    • newInstance

      public static ConnectionInitEvent newInstance(io.vertx.ext.web.handler.graphql.ws.ConnectionInitEvent arg)