public class ThreadInfoSample extends Object implements Serializable
ThreadInfo
.Modifier and Type | Method and Description |
---|---|
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 Thread.State getThreadState()
public StackTraceElement[] getStackTrace()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.