Class ThreadCtx
java.lang.Object
com.openhtmltopdf.util.ThreadCtx
Because OpenHTMLtoPDF is designed to run in a single thread at all times for one invocation,
we can use a ThreadLocal to store pseudo global variables.
This MUST be set up in the appropriate renderer.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseableapplyDiagnosticConsumer(Consumer<Diagnostic> consumer) static voidcleanup()static ThreadCtx.ThreadDataget()
-
Constructor Details
-
ThreadCtx
public ThreadCtx()
-
-
Method Details
-
get
-
cleanup
public static void cleanup() -
applyDiagnosticConsumer
-