# Class: com.pnfsoftware.jeb.util.concurrent.TimedOperationVerifier

Enforce time\-outs on operations and throw [OperationTimedOutException](OperationTimedOutException). Same as [Watchdog](Watchdog).

## Constructor: TimedOperationVerifier
- parameter: `t0`, type: `long`
- parameter: `maxExecTime`, type: `long`

Description: Create a verifier.
parameter: t0: epoch\-relative timestamp in ms
parameter: maxExecTime: max allowed execution time in ms; 0 means no limit

## Constructor: TimedOperationVerifier
- parameter: `maxExecTime`, type: `long`

Description: Create a verifier whose start time is the current time.
parameter: maxExecTime: max allowed execution time in ms; 0 means no limit

## Constructor: TimedOperationVerifier

Description: Create a verifier with no time limit.

## Static Field: DEFAULT
Type: `com.pnfsoftware.jeb.util.concurrent.TimedOperationVerifier`
Description: Default verifier checking only the current thread's interruption status.

## Method: getInitTime
- return type: `long`

Description: Get the verifier's start time.
return: epoch\-relative start timestamp, in milliseconds

## Method: getMaxExecTime
- return type: `long`

Description: Get the maximum allowed execution time.
return: maximum execution time in milliseconds; 0 means no limit

## Method: verify

Description: Verify that the current thread has not been interrupted and the timeout has not elapsed.
throws: if the current thread is interrupted or the timeout             elapsed

## Static Method: reportInterruption
- parameter: `e`, type: `java.lang.InterruptedException`

Description: Report an interruption as an operation timeout.
parameter: e: interruption to wrap
throws: always thrown

## Static Method: verify
- parameter: `o`, type: `com.pnfsoftware.jeb.util.concurrent.TimedOperationVerifier`

Description: Verify an operation using the provided verifier or [#DEFAULT](#DEFAULT).
parameter: o: verifier to use, or null to use [#DEFAULT](#DEFAULT)
throws: if the current thread is interrupted or the timeout             elapsed

## Static Method: verifyInterruptions

Description: Verify that the current thread has not been interrupted.
throws: if the current thread is interrupted

