public class TimeViolationError
extends java.lang.AssertionError
TimeGuard,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private long |
detectedTimeInMilliseconds |
private TimeGuard.TimeData |
item |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
TimeViolationError(long detectedTimeInMilliseconds,
TimeGuard.TimeData item)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TimeGuard.TimeData |
getData()
Get the data container which was created during time watcher registration.
|
long |
getDetectedTimeInMilliseconds()
Get the detected time in milliseconds.
|
long |
getDetectedViolationInMilliseconds()
Get the difference between the expected max time and the detected time.
|
private static final long serialVersionUID
private final long detectedTimeInMilliseconds
private final TimeGuard.TimeData item
public TimeViolationError(long detectedTimeInMilliseconds,
TimeGuard.TimeData item)
detectedTimeInMilliseconds - the detected time in milliseconds.item - the data container contains registration data for time watcherpublic long getDetectedViolationInMilliseconds()
public long getDetectedTimeInMilliseconds()
public TimeGuard.TimeData getData()