Package io.vertx.rxjava3.core
Class Timer
- java.lang.Object
-
- io.vertx.rxjava3.core.Timer
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
public class Timer extends Object implements io.vertx.lang.rx.RxDelegate
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 aCancellationException.NOTE: This class has been automatically generated from the
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<Timer>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()Attempt to cancel the timer task, when the timer is cancelled, the timer is failed with aCancellationException.intcompareTo(Delayed o)booleanequals(Object o)longgetDelay(TimeUnit unit)TimergetDelegate()inthashCode()static TimernewInstance(Timer arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<Timer> __TYPE_ARG
-
-
Method Detail
-
getDelegate
public Timer getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
cancel
public boolean cancel()
Attempt to cancel the timer task, when the timer is cancelled, the timer is failed with aCancellationException.- Returns:
truewhen the future was cancelled and the timeout didn't fire.
-
getDelay
public long getDelay(TimeUnit unit)
-
compareTo
public int compareTo(Delayed o)
-
-