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.
- Author:
- Julien Viet
- See Also:
-
Timer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()Attempt to cancel the timer task, when the timer is cancelled, the timer is failed with aCancellationException.intbooleanlongio.vertx.core.TimerGet the delegate instance.inthashCode()static TimernewInstance(io.vertx.core.Timer delegate) Creates a new instance of theTimer.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Timer
public Timer(io.vertx.core.Timer delegate) Create a new instance ofTimerdelegating to the given (non-null) instance ofTimer. -
Timer
-
-
Method Details
-
getDelegate
public io.vertx.core.Timer getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
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
-
compareTo
-
newInstance
Creates a new instance of theTimer. -
hashCode
public int hashCode() -
equals
-
toString
-