Class Timer
java.lang.Object
io.vertx.reactivex.core.Timer
- All Implemented Interfaces:
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 a
CancellationException.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
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.intbooleanlonginthashCode()static TimernewInstance(Timer arg) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Timer
-
Timer
-
-
Method Details
-
toString
-
equals
-
hashCode
-
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
-
compareTo
-
newInstance
-