Class Timer

java.lang.Object
io.vertx.mutiny.core.Timer
All Implemented Interfaces:
MutinyDelegate

public class Timer extends Object implements MutinyDelegate
A timer task that can be used as a future. The future is completed when the timeout expires, when the task is cancelled the future is failed with a CancellationException.

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

  • Field Details

    • __TYPE_ARG

      public static final TypeArg<Timer> __TYPE_ARG
  • Constructor Details

    • Timer

      public Timer(io.vertx.core.Timer delegate)
    • Timer

      public Timer(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.core.Timer getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

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

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

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

      public boolean cancel()
      Returns:
      true when the future was cancelled and the timeout didn't fire.
    • newInstance

      public static Timer newInstance(io.vertx.core.Timer arg)