class Timeout extends Object
Tools to abort long running test and call a node snapshot
Modifier and Type | Field and Description |
---|---|
(package private) static String |
TIMEOUT |
Constructor and Description |
---|
Timeout() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
end()
Cancel the timeout for the test case
|
(package private) void |
setTimeoutBehavior(Runnable runnable)
Override the default behavior to create node snapshot and exist the jvm
|
(package private) void |
setTimoutSeconds(long timeoutSeconds)
Override the default timeout
|
(package private) void |
start(long timeoutSeconds)
Start timeout for this test case
|
static final String TIMEOUT
void start(long timeoutSeconds)
Start timeout for this test case
This method can be run within or outside a transaction
timeoutSeconds
- timeout in secondsvoid end()
Cancel the timeout for the test case
This method can be run within or outside a transaction
void setTimeoutBehavior(Runnable runnable)
Override the default behavior to create node snapshot and exist the jvm
runnable
- code to execute on timeoutvoid setTimoutSeconds(long timeoutSeconds)
Override the default timeout
timeoutSeconds
- Timeout in seconds - most be greater than zeroCopyright © 2015–2019 Cloud Software Group, Inc.. All rights reserved.