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.
| Access | Constructor and Description |
|---|---|
| public |
| MirrorEvent | back to summary |
|---|---|
| public MirrorEvent() | |