@Test public void testToString() { Assert.assertEquals("9223372036854775807 SECONDS", Timeout.ofSeconds(Long.MAX_VALUE).toString()); Assert.assertEquals("0 MILLISECONDS", Timeout.ZERO_MILLISECONDS.toString()); }
public static Timeout ofSeconds(final long seconds) { return of(seconds, TimeUnit.SECONDS); }
Timeout extends TimeValue { public static Timeout ofSeconds(final long seconds) { return of(seconds, TimeUnit.SECONDS); } }
Timeout extends TimeValue { public static Timeout ofSeconds(final long seconds) { return of(seconds, TimeUnit.SECONDS); } Timeout(final long duration, final TimeUnit timeUnit); }
Timeout extends TimeValue { public static Timeout ofSeconds(final long seconds) { return of(seconds, TimeUnit.SECONDS); } Timeout(final long duration, final TimeUnit timeUnit); static Timeout defaultsToDisabled(final Timeout timeout); static Timeout of(final long duration, final TimeUnit timeUnit); static Timeout ofDays(final long days); static Timeout ofHours(final long hours); static Timeout ofMicroseconds(final long microseconds); static Timeout ofMilliseconds(final long milliseconds); static Timeout ofMinutes(final long minutes); static Timeout ofNanoseconds(final long nanoseconds); static Timeout ofSeconds(final long seconds); static Timeout parse(final String value); boolean isDisabled(); boolean isEnabled(); }
Timeout extends TimeValue { public static Timeout ofSeconds(final long seconds) { return of(seconds, TimeUnit.SECONDS); } Timeout(final long duration, final TimeUnit timeUnit); static Timeout defaultsToDisabled(final Timeout timeout); static Timeout of(final long duration, final TimeUnit timeUnit); static Timeout ofDays(final long days); static Timeout ofHours(final long hours); static Timeout ofMicroseconds(final long microseconds); static Timeout ofMilliseconds(final long milliseconds); static Timeout ofMinutes(final long minutes); static Timeout ofNanoseconds(final long nanoseconds); static Timeout ofSeconds(final long seconds); static Timeout parse(final String value); boolean isDisabled(); boolean isEnabled(); static final Timeout ZERO_MILLISECONDS; static final Timeout ONE_MILLISECOND; static final Timeout DISABLED; }