@Deprecated public interface Timeout
| Modifier and Type | Method and Description |
|---|---|
default <A> CompletionStage<A> |
timeout(CompletionStage<A> stage,
Duration delay)
Deprecated.
An alias for timeout(stage, delay, unit) that uses a java.time.Duration.
|
default <A> CompletionStage<A> |
timeout(CompletionStage<A> stage,
long delay,
TimeUnit unit)
Deprecated.
Creates a CompletionStage that returns either the input stage, or a timeout.
|
default <A> CompletionStage<A> timeout(CompletionStage<A> stage, long delay, TimeUnit unit)
A - the type in the completion stagestage - the completion stage that should be wrapped with a timeout.delay - The delay (expressed with the corresponding unit).unit - The time Unit.default <A> CompletionStage<A> timeout(CompletionStage<A> stage, Duration delay)
A - the type in the completion stagestage - the completion stage that should be wrapped with a future.delay - The delay (expressed with the corresponding unit).