Class MetadataEvent

java.lang.Object
jdk.jfr.consumer.MetadataEvent
public final class MetadataEvent extends Object
Event that contains information about event types and configurations.
Since:
16

Method Summary

Modifier and Type Method Description
final List<EventType> getAddedEventTypes()
Returns a list of added event types since the last metadata event.
List<Configuration> getConfigurations()
Returns a list of configurations.
final List<EventType> getEventTypes()
Returns a list of the current event types being used.
final List<EventType> getRemovedEventTypes()
Returns a list of removed event types since the last metadata event.

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

getEventTypes

public final List<EventType> getEventTypes()
Returns a list of the current event types being used.
Returns:
an immutable list of event types, not null

getAddedEventTypes

public final List<EventType> getAddedEventTypes()
Returns a list of added event types since the last metadata event.

The delta will be from the last metadata event. If no metadata event has been emitted earlier, all known event types will be in the list.

Returns:
an immutable list of added event types, not null

getRemovedEventTypes

public final List<EventType> getRemovedEventTypes()
Returns a list of removed event types since the last metadata event.

The delta will be from the last metadata event. If no metadata event has been emitted earlier, the list will be empty.

Returns:
an immutable list of added event types, not null

getConfigurations

public List<Configuration> getConfigurations()
Returns a list of configurations.
Returns:
an immutable list of configurations, not null

© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/jdk.jfr/jdk/jfr/consumer/MetadataEvent.html