Package io.vertx.mutiny.core
Class Timer
- java.lang.Object
-
- io.vertx.mutiny.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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Timer>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel()
boolean
equals(Object o)
io.vertx.core.Timer
getDelegate()
int
hashCode()
static Timer
newInstance(io.vertx.core.Timer arg)
String
toString()
-
-
-
Constructor Detail
-
Timer
public Timer(io.vertx.core.Timer delegate)
-
Timer
public Timer(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.core.Timer getDelegate()
-
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)
-
-