APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.jfr.consumer

public final Class MetadataEvent

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .HashMap, .List, .Map, jdk.jfr.Configuration, .EventType

Event that contains information about event types and configurations.
Since
16

Field Summary

Modifier and TypeField and Description
private List<EventType>
private final List<Configuration>
private final List<EventType>
private final List<EventType>
private List<EventType>

Constructor Summary

AccessConstructor and Description
pack-priv
MetadataEvent(List<EventType> previous, List<EventType> current, List<Configuration> configs)

Method Summary

Modifier and TypeMethod and Description
private void
public final List<EventType>

Returns:

an immutable list of added event types, not null
getAddedEventTypes
()

Returns a list of added event types since the last metadata event.

public List<Configuration>

Returns:

an immutable list of configurations, not null
getConfigurations
()

Returns a list of configurations.

public final List<EventType>

Returns:

an immutable list of event types, not null
getEventTypes
()

Returns a list of the current event types being used.

public final List<EventType>

Returns:

an immutable list of removed event types, not null
getRemovedEventTypes
()

Returns a list of removed event types since the last metadata event.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addedback to summary
private List<EventType> added
configurationsback to summary
private final List<Configuration> configurations
currentback to summary
private final List<EventType> current
previousback to summary
private final List<EventType> previous
removedback to summary
private List<EventType> removed

Constructor Detail

MetadataEventback to summary
pack-priv MetadataEvent(List<EventType> previous, List<EventType> current, List<Configuration> configs)

Method Detail

calculateDeltaback to summary
private void calculateDelta()
getAddedEventTypesback to summary
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:List<EventType>

an immutable list of added event types, not null

getConfigurationsback to summary
public List<Configuration> getConfigurations()

Returns a list of configurations.

Returns:List<Configuration>

an immutable list of configurations, not null

getEventTypesback to summary
public final List<EventType> getEventTypes()

Returns a list of the current event types being used.

Returns:List<EventType>

an immutable list of event types, not null

getRemovedEventTypesback to summary
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:List<EventType>

an immutable list of removed event types, not null