public interface Timer extends Future<Void>
CancellationException
.Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Attempt to cancel the timer task, when the timer is cancelled, the timer is
failed with a
CancellationException . |
all, all, all, all, all, all, andThen, any, any, any, any, any, any, await, cause, compose, compose, eventually, eventually, expecting, failed, failedFuture, failedFuture, flatMap, fromCompletionStage, fromCompletionStage, future, isComplete, join, join, join, join, join, join, map, map, mapEmpty, onComplete, onComplete, onFailure, onSuccess, otherwise, otherwise, otherwiseEmpty, recover, result, succeeded, succeededFuture, succeededFuture, timeout, toCompletionStage, transform
boolean cancel()
CancellationException
.true
when the future was cancelled and the timeout didn't fire.Copyright © 2024 Eclipse. All rights reserved.