public class

TimedOperationVerifier

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.concurrent.TimedOperationVerifier

Class Overview

Enforce time-outs on operations and throw OperationTimedOutException. Same as Watchdog.

Summary

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

Fields

public static final TimedOperationVerifier DEFAULT

Public Constructors

public TimedOperationVerifier (long t0, long maxExecTime)

Create a verifier.

Parameters
t0 epoch-relative timestamp in ms
maxExecTime max allowed execution time in ms; 0 means no limit

public TimedOperationVerifier (long maxExecTime)

Create a verifier whose start time is the current time.

Parameters
maxExecTime max allowed execution time in ms; 0 means no limit

public TimedOperationVerifier ()

Create a verifier with no time limit.

Public Methods

public long getInitTime ()

public long getMaxExecTime ()

public static void reportInterruption (InterruptedException e)

public static void verify (TimedOperationVerifier o)

public void verify ()

public static void verifyInterruptions ()