Jstack-related utilities.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
includeInfoFrom
(Supplier<String> infoSupplier) Specifies a supplier of additional information to be included into the output ofjstack
.
-
Method Details
-
includeInfoFrom
Specifies a supplier of additional information to be included into the output ofjstack
. The String supplied will be included as-is with no header surrounded only with line breaks.infoSupplier
will be invoked on an unspecified thread that must not be left blocked for a long time. Only one supplier is allowed, so subsequent calls toincludeInfoFrom
will overwrite the previously specified supplier.- Parameters:
infoSupplier
- a supplier ofString
values to be included into jstack's output. Ifnull
, then the previously registered supplier is removed (if any) and no extra info will be included.
-