Package io.vertx.mutiny.core
Class Timer
java.lang.Object
io.vertx.mutiny.core.Timer
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
boolean
io.vertx.core.Timer
int
hashCode()
static Timer
newInstance
(io.vertx.core.Timer arg) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Timer
public Timer(io.vertx.core.Timer delegate) -
Timer
-
-
Method Details
-
getDelegate
public io.vertx.core.Timer getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
cancel
public boolean cancel()- Returns:
true
when the future was cancelled and the timeout didn't fire.
-
newInstance
-