|
JProfiler API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PayloadInfo
A payload info represents a verbose description that can be added added to the current call stack together with associated timing information. Payload infos are created with factory methods in the interceptor context class and can have optional memento objects that help you keep additional state if the payload info is handled in different contexts, such as interception entry and interception exit.
A typical example for payload is the SQL string that is displayed by the built-in JDBC probe.
InterceptorContext.createPayloadInfo(String),
InterceptorContext.createPayloadInfo(String, Object)| Method Summary | |
|---|---|
PayloadInfo |
calculateTime()
Calculates the elapsed time since the creation of the payload and save it in the payload info. |
PayloadInfo |
discardTime()
Discards the associated timing information in the payload, so that the displayed time in the JProfiler GUI will be zero. |
java.lang.String |
getDescription()
Returns the description for the payload info. |
java.lang.Object |
getMemento()
Retrieves the memento object. |
void |
setDescription(java.lang.String description)
Sets the description for the payload info. |
void |
setMemento(java.lang.Object memento)
Sets the memento object. |
| Method Detail |
|---|
java.lang.String getDescription()
void setDescription(java.lang.String description)
description - the descriptionjava.lang.Object getMemento()
void setMemento(java.lang.Object memento)
memento - the memento object, can be nullPayloadInfo calculateTime()
PayloadInfo discardTime()
|
JProfiler API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||