Jstack-related utilities.
-
Method Summary
Modifier and TypeMethodDescriptionvoidincludeInfoFrom(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.infoSupplierwill be invoked on an unspecified thread that must not be left blocked for a long time. Only one supplier is allowed, so subsequent calls toincludeInfoFromwill overwrite the previously specified supplier.- Parameters:
infoSupplier- a supplier ofStringvalues to be included into jstack's output. Ifnull, then the previously registered supplier is removed (if any) and no extra info will be included.
-