public final class Timeout extends Object
hasExpired() but bear in mind that the StopWatch
used internally may start on construction of the Timeout instance. You should therefore new up a Timeout
when you actually want the timeout to start ticking down and not keep instances hanging around.| Modifier and Type | Method and Description |
|---|---|
boolean |
hasExpired() |
static Timeout |
timeout(Duration duration) |
static Timeout |
timeout(Duration duration,
StopWatch stopWatch) |
Copyright © 2009–2017 tempus-fugit committers. All rights reserved.