public static final class TimeGuard.TimeData extends Object implements Serializable
Constructor and Description |
---|
TimeData(int stackDepth,
String alertMessage,
long maxAllowedDelayInMilliseconds,
TimeGuard.TimeAlertListener violationListener)
The Constructor
|
Modifier and Type | Method and Description |
---|---|
TimeGuard.TimeAlertListener |
getAlertListener()
Get alert listener if provided
|
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.
|
@Weight(value=LIGHT) public TimeData(@Constraint(value="X>1") int stackDepth, 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 String getAlertMessage()
public int getDetectedStackDepth()
public long getCreationTimeInMilliseconds()
public long getMaxAllowedDelayInMilliseconds()
public boolean isTimePoint()
Copyright © 2011–2021 Igor Maznitsa. All rights reserved.