src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordedThreadGroup.java
branchJEP-349-branch
changeset 57460 bcbc53560c77
parent 50113 caf115bb98ad
child 58112 e7754025004b
equal deleted inserted replaced
57459:df39f8d8f4d6 57460:bcbc53560c77
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package jdk.jfr.consumer;
    26 package jdk.jfr.consumer;
    27 
    27 
    28 import java.util.List;
       
    29 
       
    30 import jdk.jfr.ValueDescriptor;
       
    31 import jdk.jfr.internal.Type;
    28 import jdk.jfr.internal.Type;
    32 
    29 
    33 /**
    30 /**
    34  * A recorded Java thread group.
    31  * A recorded Java thread group.
    35  *
    32  *
    36  * @since 9
    33  * @since 9
    37  */
    34  */
    38 public final class RecordedThreadGroup extends RecordedObject {
    35 public final class RecordedThreadGroup extends RecordedObject {
    39 
    36 
    40     static ObjectFactory<RecordedThreadGroup> createFactory(Type type, TimeConverter timeConverter) {
    37     static ObjectFactory<RecordedThreadGroup> createFactory(Type type, TimeConverter timeConverter) {
    41         return new ObjectFactory<RecordedThreadGroup>(type) {
    38         return new ObjectFactory<RecordedThreadGroup>(type, timeConverter) {
    42             @Override
    39             @Override
    43             RecordedThreadGroup createTyped(List<ValueDescriptor> desc, long id, Object[] object) {
    40             RecordedThreadGroup createTyped(ObjectContext objectContext, long id, Object[] values) {
    44                 return new RecordedThreadGroup(desc, object, timeConverter);
    41                 return new RecordedThreadGroup(objectContext, values);
    45             }
    42             }
    46         };
    43         };
    47     }
    44     }
    48 
    45 
    49     private RecordedThreadGroup(List<ValueDescriptor> descriptors, Object[] objects, TimeConverter timeConverter) {
    46     private RecordedThreadGroup(ObjectContext objectContext, Object[] values) {
    50         super(descriptors, objects, timeConverter);
    47         super(objectContext, values);
    51     }
    48     }
    52 
    49 
    53     /**
    50     /**
    54      * Returns the name of the thread group, or {@code null} if doesn't exist.
    51      * Returns the name of the thread group, or {@code null} if doesn't exist.
    55      *
    52      *