APIdia Launch Partner
Top Fields Constructors Methods
jdk.jfr.internal.event

public final Record EventConfiguration

extends Record
Class Inheritance
Record Components
platformEventType:PlatformEventType 
eventType:EventType 
eventControl:EventControl 
settings:SettingControl[] 
throttler:Throttler 
id:long 
Imports
java.lang.reflect.Field, jdk.jfr.EventType, .SettingControl, jdk.jfr.internal.EventControl, .EventInstrumentation, .JVM, .PlatformEventType, jdk.jfr.internal.settings.Throttler

Field Summary

Modifier and TypeField and Description
private final EventControl
eventControl

Record Component accessed by eventControl().

private final EventType
eventType

Record Component accessed by eventType().

private final long
id

Record Component accessed by id().

private final PlatformEventType
platformEventType

Record Component accessed by platformEventType().

private final SettingControl[]
settings

Record Component accessed by settings().

private final Throttler
throttler

Record Component accessed by throttler().

Constructor Summary

AccessConstructor and Description
public
EventConfiguration(PlatformEventType platformEventType, EventType eventType, EventControl eventControl, SettingControl[] settings, Throttler throttler, long id)

Method Summary

Modifier and TypeMethod and Description
public static long
duration(long startTime)

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public EventControl
eventControl()

Record Component getter of eventControl.

public EventType
eventType()

Record Component getter of eventType.

public SettingControl
getSetting(int index)

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public long
id()

Record Component getter of id.

public boolean
public boolean
public PlatformEventType
platformEventType()

Record Component getter of platformEventType.

public SettingControl[]
settings()

Record Component getter of settings.

public boolean
shouldCommit(long duration)

public boolean
shouldThrottleCommit(long duration, long timestamp)

public boolean
shouldThrottleCommit(long timestamp)

public long
throttle(long startTime, long rawDuration)

public Throttler
throttler()

Record Component getter of throttler.

public static long
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public static boolean

Field Detail

eventControlback to summary
private final EventControl eventControl

Record Component accessed by eventControl().

eventTypeback to summary
private final EventType eventType

Record Component accessed by eventType().

idback to summary
private final long id

Record Component accessed by id().

platformEventTypeback to summary
private final PlatformEventType platformEventType

Record Component accessed by platformEventType().

settingsback to summary
private final SettingControl[] settings

Record Component accessed by settings().

throttlerback to summary
private final Throttler throttler

Record Component accessed by throttler().

Constructor Detail

EventConfigurationback to summary
public EventConfiguration(PlatformEventType platformEventType, EventType eventType, EventControl eventControl, SettingControl[] settings, Throttler throttler, long id)

Method Detail

durationback to summary
public static long duration(long startTime)
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
eventControlback to summary
public EventControl eventControl()

Record Component getter of eventControl.

eventTypeback to summary
public EventType eventType()

Record Component getter of eventType.

getSettingback to summary
public SettingControl getSetting(int index)
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

idback to summary
public long id()

Record Component getter of id.

isEnabledback to summary
public boolean isEnabled()
isRegisteredback to summary
public boolean isRegistered()
platformEventTypeback to summary
public PlatformEventType platformEventType()

Record Component getter of platformEventType.

settingsback to summary
public SettingControl[] settings()

Record Component getter of settings.

shouldCommitback to summary
public boolean shouldCommit(long duration)
shouldThrottleCommitback to summary
public boolean shouldThrottleCommit(long duration, long timestamp)
shouldThrottleCommitback to summary
public boolean shouldThrottleCommit(long timestamp)
throttleback to summary
public long throttle(long startTime, long rawDuration)
throttlerback to summary
public Throttler throttler()

Record Component getter of throttler.

timestampback to summary
public static long timestamp()
toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

tryUpdateEpochback to summary
public static boolean tryUpdateEpoch(Field root)