jdk.jfr.events.SerializationMisdeclarationEvent
where the metadata for the event is provided with annotations.
Some of the methods are replaced by generated methods when jfr is enabled.
Note that the order of the arguments of the commit(long, Class, String)
method must be the same as the order of the fields.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static boolean | Returns: whether serialization misdeclaration events are enabledDetermine if this kind of event is enabled. |
| public static boolean | Returns: true if the event should be commitedtime in nanoseconds to complete the operation duration)Determine if an event should be emitted. |
| public static long |
| message | back to summary |
|---|---|
| public String message | |
| misdeclaredClass | back to summary |
|---|---|
| public Class<?> misdeclaredClass | |
| SerializationMisdeclarationEvent | back to summary |
|---|---|
| public SerializationMisdeclarationEvent() | |
| commit | back to summary |
|---|---|
| public static void commit(long start, Class<?> misdeclaredClass, String message) Commit a serialization misdeclaration event.
The implementation of this method is generated automatically if jfr is enabled.
The order of the fields must be the same as the parameters in this method.
| |
| enabled | back to summary |
|---|---|
| public static boolean enabled() Determine if this kind of event is enabled. The implementation of this method is generated automatically if jfr is enabled.
| |
| shouldCommit | back to summary |
|---|---|
| public static boolean shouldCommit(long duration) Determine if an event should be emitted. The duration of the operation must exceed some threshold in order to commit the event. The implementation of this method is generated automatically if jfr is enabled.
| |
| timestamp | back to summary |
|---|---|
| public static long timestamp() Fetch the current timestamp in nanoseconds. This method is used to determine the start and end of an operation. The implementation of this method is generated automatically if jfr is enabled.
| |