Module jdk.jfr

Class RecordedClassLoader



  • public final class RecordedClassLoader
    extends RecordedObject
    A recorded Java class loader.
    Since:
    9
    • Method Detail

      • getType

        public RecordedClass getType​()
        Returns the class of the class loader.

        If the bootstrap class loader is represented as null in the JVM, null is 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