io.vertx.reactivex.core

## Class Timer

- java.lang.Object
- - io.vertx.reactivex.core.Timer

-     public class Timer
      extends Object

  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 RX-ified interface using Vert.x codegen.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static io.vertx.lang.rx.TypeArg<Timer>` | `__TYPE_ARG`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Timer(Object delegate)`
    `Timer(Timer delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `cancel()` Attempt to cancel the timer task, when the timer is cancelled, the timer is failed with a `CancellationException`.
    `boolean` | `equals(Object o)`
    `Timer` | `getDelegate()`
    `int` | `hashCode()`
    `static Timer` | `newInstance(Timer arg)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.TypeArg<Timer> __TYPE_ARG

  - ### Constructor Detail

    - #### Timer

          public Timer(Timer delegate)

    - #### Timer

          public Timer(Object delegate)

  - ### Method Detail

    - #### 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`

    - #### getDelegate

          public Timer getDelegate()

    - #### cancel

          public boolean cancel()

      Attempt to cancel the timer task, when the timer is cancelled, the timer is failed with a `CancellationException`.
      Returns:
        `true` when the future was cancelled and the timeout didn't fire.

    - #### newInstance

          public static Timer newInstance(Timer arg)

Copyright © 2023 Eclipse. All rights reserved.