public class ThreadInfoSample extends Object implements Serializable
ThreadInfo
.Modifier and Type | Method and Description |
---|---|
static Map<Long,ThreadInfoSample> |
from(Collection<ThreadInfo> threadInfos)
Constructs a collection of
ThreadInfoSample s from a collection of ThreadInfo
samples. |
static Optional<ThreadInfoSample> |
from(ThreadInfo threadInfo)
Constructs a
ThreadInfoSample from ThreadInfo . |
StackTraceElement[] |
getStackTrace() |
Thread.State |
getThreadState() |
public static Optional<ThreadInfoSample> from(@Nullable ThreadInfo threadInfo)
ThreadInfoSample
from ThreadInfo
.threadInfo
- ThreadInfo
where the data will be copied from.ThreadInfoSample
if the threadInfo
is not
null and an empty Optional otherwise.public static Map<Long,ThreadInfoSample> from(Collection<ThreadInfo> threadInfos)
ThreadInfoSample
s from a collection of ThreadInfo
samples.threadInfos
- the collection of ThreadInfo
.ThreadInfoSample
s.public Thread.State getThreadState()
public StackTraceElement[] getStackTrace()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.