- java.lang.Object
-
- jdk.jfr.consumer.RecordedObject
-
- jdk.jfr.consumer.RecordedClassLoader
-
public final class RecordedClassLoader extends RecordedObject
A recorded Java class loader.- Since:
- 9
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetId()Returns a unique id for the class loader that can never be reused within the life span of the JVM.StringgetName()Returns the name of the class loader, for instance "boot", "platform" and "app".RecordedClassgetType()Returns the class of the class loader.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class jdk.jfr.consumer.RecordedObject
getFields, getValue, hasField, toString
-
-
-
-
Method Detail
-
getType
public RecordedClass getType()
Returns the class of the class loader.If the bootstrap class loader is represented as
nullin the JVM,nullis also the return value of this method.- Returns:
- class of the class loader, can be
null
-
getName
public String getName()
Returns the name of the class loader, for instance "boot", "platform" and "app".- Returns:
- the class loader name, can be
null
-
getId
public long getId()
Returns a unique id for the class loader that can never be reused within the life span of the JVM.- Returns:
- a unique id
-
-