APIdia Launch Partner
Top Description Constructors Methods
jdk.jfr.internal

public abstract Class MirrorEvent

extends Object
Class Inheritance
Known Direct Subclasses
jdk.jfr.events.ExceptionStatisticsEvent, jdk.jfr.events.DeserializationEvent, jdk.jfr.events.ErrorThrownEvent, jdk.jfr.events.ExceptionThrownEvent, jdk.jfr.events.FileForceEvent, jdk.jfr.events.FileReadEvent, jdk.jfr.events.FileWriteEvent, jdk.jfr.events.FinalFieldMutationEvent, jdk.jfr.events.ProcessStartEvent, jdk.jfr.events.SecurityPropertyModificationEvent, jdk.jfr.events.SecurityProviderServiceEvent, jdk.jfr.events.SerializationMisdeclarationEvent, jdk.jfr.events.SocketReadEvent, jdk.jfr.events.SocketWriteEvent, jdk.jfr.events.ThreadSleepEvent, jdk.jfr.events.TLSHandshakeEvent, jdk.jfr.events.VirtualThreadEndEvent, jdk.jfr.events.VirtualThreadStartEvent, jdk.jfr.events.VirtualThreadSubmitFailedEvent, jdk.jfr.events.X509CertificateEvent, jdk.jfr.events.X509ValidationEvent
Annotations
@Registered:false
@Enabled:false
@StackTrace:false
Imports
jdk.jfr.Enabled, .Registered, .StackTrace

A mirror event is a fictitious event class that contains metadata about an event, but not the implementation to write the event data to buffers.

A mirror event should be used when an event class is in a module where a dependency on the jdk.jfr module is not possible, for example, due to a circular dependency.

Subclass the MirrorEvent class and add the exact same fields as the actual event, but with labels, descriptions etc.

For the mirror mechanism to work, the mirror class must be registered in the jdk.jfr.internal.MirrorEvents class.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MirrorEventback to summary
public MirrorEvent()