public class Timeout
extends Object
Timeout value object to represent a timeout value with its
TimeUnit.
- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
Command
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
create
- Parameters:
timeout - the timeout value, must be non-negative.
- Returns:
- the
Timeout.
-
create
- Parameters:
timeout - the timeout value, must be non-negative.
timeUnit - the associated TimeUnit, must not be null.
- Returns:
- the
Timeout.
-
getTimeout
- Returns:
- the timeout value.