Package com.jprofiler.api.probe.injected
Annotation Type Probe
-
@Retention(RUNTIME) @Target(TYPE) public @interface ProbeMarks a class that defines an injected probe and parametrizes the probe. The probe class will be scanned for public static methods that are annotated withInterception,PayloadInterception,SplitInterception,AdditionalInterception,ControlObjectNameandTelemetry.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringnameThe name of the probe in the JProfiler UI.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleancontrolObjectsConfigures if this probe shows the timeline and control objects views in the JProfiler UI.java.lang.Class<? extends java.lang.Enum>customTypesYou can specify custom types for events.booleandefaultTelemetriesConfigures if this probe should record the "Events", "Average Duration" and - if control objects are recorded - the "Recorded Open Control Objects" telemetries.java.lang.StringdescriptionAn optional description of this probe.booleaneventsConfigures if this probe shows an events view in the JProfiler UI.
-
-
-
-
controlObjects
boolean controlObjects
Configures if this probe shows the timeline and control objects views in the JProfiler UI.You must make use of
ProbeContext.createPayload(String, Object, Enum)to associate control objects with payloads.- Returns:
trueif control objects should be shown and recorded.
- Default:
- false
-
-
-
customTypes
java.lang.Class<? extends java.lang.Enum> customTypes
You can specify custom types for events. If control objects are recorded, the same types are used for the associated control object states. Specify anEnumclass with all your states as constants. ThetoString()method is used for the event display name. You can further customize your events by implementingTypeCustomizerin the enum class.- Returns:
- the class of your event enum
- Default:
- java.lang.Enum.class
-
-