Class ServiceTalkTestTimeout
- java.lang.Object
-
- org.junit.rules.Timeout
-
- io.servicetalk.concurrent.internal.ServiceTalkTestTimeout
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class ServiceTalkTestTimeout extends org.junit.rules.Timeout
Standard timeout shared by test classes. TheTimeout.lookForStuckThread
setting is ignored.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
CI
static int
DEFAULT_TIMEOUT_SECONDS
static java.lang.String
THREAD_PREFIX
-
Constructor Summary
Constructors Constructor Description ServiceTalkTestTimeout()
ServiceTalkTestTimeout(long timeout, java.util.concurrent.TimeUnit unit)
ServiceTalkTestTimeout(long timeout, java.util.concurrent.TimeUnit unit, java.lang.Runnable onTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
-
-
-
Field Detail
-
CI
public static final boolean CI
-
DEFAULT_TIMEOUT_SECONDS
public static final int DEFAULT_TIMEOUT_SECONDS
-
THREAD_PREFIX
public static final java.lang.String THREAD_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServiceTalkTestTimeout
public ServiceTalkTestTimeout()
-
ServiceTalkTestTimeout
public ServiceTalkTestTimeout(long timeout, java.util.concurrent.TimeUnit unit)
-
ServiceTalkTestTimeout
public ServiceTalkTestTimeout(long timeout, java.util.concurrent.TimeUnit unit, java.lang.Runnable onTimeout)
-
-