public static final class TimeGuard.TimeData
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private TimeGuard.TimeAlertListener |
alertListener
Some provided processor to be called for alert.
|
private java.lang.String |
alertMessage
The Alert message to be provided into log or somewhere else, for time points it is ID.
|
private long |
creationTimeInMilliseconds
The Creation time of the data container in milliseconds.
|
private long |
maxAllowedDelayInMilliseconds
Max allowed time delay in milliseconds.
|
private static long |
serialVersionUID |
private int |
stackDepth
Contains detected stack depth for creation.
|
| Constructor and Description |
|---|
TimeData(int stackDepth,
java.lang.String alertMessage,
long maxAllowedDelayInMilliseconds,
TimeGuard.TimeAlertListener violationListener)
The Constructor
|
| Modifier and Type | Method and Description |
|---|---|
TimeGuard.TimeAlertListener |
getAlertListener()
Get alert listener if provided
|
java.lang.String |
getAlertMessage()
Get the alert message.
|
long |
getCreationTimeInMilliseconds()
Get the creation time of the container.
|
int |
getDetectedStackDepth()
Get the detected stack depth during the container creation.
|
long |
getMaxAllowedDelayInMilliseconds()
Get defined max allowed time delay in milliseconds.
|
boolean |
isTimePoint()
Check that the object represents a named time point.
|
private static final long serialVersionUID
private final int stackDepth
private final long maxAllowedDelayInMilliseconds
private final long creationTimeInMilliseconds
private final java.lang.String alertMessage
private final TimeGuard.TimeAlertListener alertListener
@Weight(value=LIGHT) public TimeData(@Constraint(value="X>1") int stackDepth, java.lang.String alertMessage, long maxAllowedDelayInMilliseconds, TimeGuard.TimeAlertListener violationListener)
stackDepth - stack depthalertMessage - alert message for time violationmaxAllowedDelayInMilliseconds - max allowed time gap in millisecondsviolationListener - listener for the violation alertpublic TimeGuard.TimeAlertListener getAlertListener()
public java.lang.String getAlertMessage()
public int getDetectedStackDepth()
public long getCreationTimeInMilliseconds()
public long getMaxAllowedDelayInMilliseconds()
public boolean isTimePoint()