| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.util.concurrent.TimedOperationVerifier |
Enforce time-outs on operations and throw OperationTimedOutException. Same as
Watchdog.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final TimedOperationVerifier | DEFAULT | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
TimedOperationVerifier(long t0, long maxExecTime)
Create a verifier.
| |||||||||||
|
TimedOperationVerifier(long maxExecTime)
Create a verifier whose start time is the current time.
| |||||||||||
|
TimedOperationVerifier()
Create a verifier with no time limit.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| long | getInitTime() | ||||||||||
| long | getMaxExecTime() | ||||||||||
| static void | reportInterruption(InterruptedException e) | ||||||||||
| static void | verify(TimedOperationVerifier o) | ||||||||||
| void | verify() | ||||||||||
| static void | verifyInterruptions() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Create a verifier.
| t0 | epoch-relative timestamp in ms |
|---|---|
| maxExecTime | max allowed execution time in ms; 0 means no limit |
Create a verifier whose start time is the current time.
| maxExecTime | max allowed execution time in ms; 0 means no limit |
|---|
Create a verifier with no time limit.