Class Async

All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate

public class Async extends Completion<Void> implements io.vertx.lang.rx.RxDelegate
An asynchronous exit point for a test.

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<Async> __TYPE_ARG
  • Constructor Details

    • Async

      public Async(Async delegate)
    • Async

      public Async(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Completion<Void>
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Completion<Void>
    • getDelegate

      public Async getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
      Overrides:
      getDelegate in class Completion<Void>
    • resolve

      public void resolve(Promise<Void> future)
      Completes the future upon completion, otherwise fails it.
      Overrides:
      resolve in class Completion<Void>
      Parameters:
      future - the future to resolve
    • count

      public int count()
      Returns:
      the current count
    • countDown

      public void countDown()
      Count down the async.
    • complete

      public void complete()
      Signals the asynchronous operation is done, this method must be called with a count greater than 0, otherwise it throws an IllegalStateException to signal the error.
    • handler

      public void handler(Handler<AsyncResult<Void>> completionHandler)
      Completion handler to receive a completion signal when this completions completes.
      Overrides:
      handler in class Completion<Void>
      Parameters:
      completionHandler - the completion handler
    • newInstance

      public static Async newInstance(Async arg)