equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
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; |
28 import jdk.jfr.internal.consumer.ObjectContext; |
29 |
|
30 import jdk.jfr.ValueDescriptor; |
|
31 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 // package private |
40 static ObjectFactory<RecordedThreadGroup> createFactory(Type type, TimeConverter timeConverter) { |
37 RecordedThreadGroup(ObjectContext objectContext, Object[] values) { |
41 return new ObjectFactory<RecordedThreadGroup>(type) { |
38 super(objectContext, values); |
42 @Override |
|
43 RecordedThreadGroup createTyped(List<ValueDescriptor> desc, long id, Object[] object) { |
|
44 return new RecordedThreadGroup(desc, object, timeConverter); |
|
45 } |
|
46 }; |
|
47 } |
|
48 |
|
49 private RecordedThreadGroup(List<ValueDescriptor> descriptors, Object[] objects, TimeConverter timeConverter) { |
|
50 super(descriptors, objects, timeConverter); |
|
51 } |
39 } |
52 |
40 |
53 /** |
41 /** |
54 * Returns the name of the thread group, or {@code null} if doesn't exist. |
42 * Returns the name of the thread group, or {@code null} if doesn't exist. |
55 * |
43 * |