src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordedThread.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 thread.
    31  * A recorded thread.
    35  *
    32  *
    36  * @since 9
    33  * @since 9
    37  */
    34  */
    38 public final class RecordedThread extends RecordedObject {
    35 public final class RecordedThread extends RecordedObject {
    39 
    36 
    40     static ObjectFactory<RecordedThread> createFactory(Type type, TimeConverter timeConverter) {
    37     static ObjectFactory<RecordedThread> createFactory(Type type, TimeConverter timeConverter) {
    41         return new ObjectFactory<RecordedThread>(type) {
    38         return new ObjectFactory<RecordedThread>(type, timeConverter) {
    42             @Override
    39             @Override
    43             RecordedThread createTyped(List<ValueDescriptor> desc, long id, Object[] object) {
    40             RecordedThread createTyped(ObjectContext objectContext, long id, Object[] values) {
    44                 return new RecordedThread(desc, id, object, timeConverter);
    41                 return new RecordedThread(objectContext, id, values);
    45             }
    42             }
    46         };
    43         };
    47     }
    44     }
    48 
    45 
    49     private final long uniqueId;
    46     private final long uniqueId;
    50 
    47 
    51     private RecordedThread(List<ValueDescriptor> descriptors, long id, Object[] values,  TimeConverter timeConverter) {
    48     private RecordedThread(ObjectContext objectContext, long id, Object[] values) {
    52         super(descriptors, values, timeConverter);
    49         super(objectContext, values);
    53         this.uniqueId = id;
    50         this.uniqueId = id;
    54     }
    51     }
    55 
    52 
    56     /**
    53     /**
    57      * Returns the thread name used by the operating system.
    54      * Returns the thread name used by the operating system.