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

public final Class RecordedClassLoader

extends RecordedObject
Class Inheritance
Imports
jdk.jfr.internal.consumer.ObjectContext

A recorded Java class loader.
Since
9

Field Summary

Modifier and TypeField and Description
private final long
Inherited from jdk.jfr.consumer.RecordedObject:
INTEGER_MINUS_ONEINTEGER_ZEROLONG_MINUS_ONEobjectContextobjects

Constructor Summary

AccessConstructor and Description
pack-priv
RecordedClassLoader(ObjectContext objectContext, long id, Object[] values)

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

a unique ID
getId
()

Returns a unique ID for the class loader.

public String

Returns:

the class loader name, can be null
getName
()

Returns the name of the class loader (for example, "boot", "platform", and "app").

public RecordedClass

Returns:

class of the class loader, can be null
getType
()

Returns the class of the class loader.

Inherited from jdk.jfr.consumer.RecordedObject:
getBooleangetBytegetChargetClassgetDoublegetDurationgetFieldsgetFloatgetInstantgetIntgetLonggetShortgetStringgetThreadgetTypedgetValuehasFieldobjectAttoString

Field Detail

uniqueIdback to summary
private final long uniqueId

Constructor Detail

RecordedClassLoaderback to summary
pack-priv RecordedClassLoader(ObjectContext objectContext, long id, Object[] values)

Method Detail

getIdback to summary
public long getId()

Returns a unique ID for the class loader.

The ID might not be the same between Java Virtual Machine (JVM) instances.

Returns:long

a unique ID

getNameback to summary
public String getName()

Returns the name of the class loader (for example, "boot", "platform", and "app").

Returns:String

the class loader name, can be null

getTypeback to summary
public RecordedClass getType()

Returns the class of the class loader.

If the bootstrap class loader is represented as null in the Java Virtual Machine (JVM), then null is also the return value of this method.

Returns:RecordedClass

class of the class loader, can be null