Package 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 aCancellationException
.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 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 boolean
cancel()
Attempt to cancel the timer task, when the timer is cancelled, the timer is failed with aCancellationException
.int
compareTo(Delayed o)
boolean
equals(Object o)
long
getDelay(TimeUnit unit)
Timer
getDelegate()
int
hashCode()
static Timer
newInstance(Timer arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<Timer> __TYPE_ARG
-
-
Method Detail
-
getDelegate
public Timer getDelegate()
-
cancel
public boolean cancel()
Attempt to cancel the timer task, when the timer is cancelled, the timer is failed with aCancellationException
.- Returns:
true
when the future was cancelled and the timeout didn't fire.
-
getDelay
public long getDelay(TimeUnit unit)
-
compareTo
public int compareTo(Delayed o)
-
-