Class LoggingThreadFactory
java.lang.Object
io.github.jeremylong.openvulnerability.client.LoggingThreadFactory
Thread factory for HTTP async client threads that configures an
Thread.UncaughtExceptionHandler to log
uncaught exceptions via SLF4J.
This factory wraps a DefaultThreadFactory and ensures that any unhandled errors in HTTP client dispatch
threads are logged, aiding in diagnosing runtime issues.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ThreadFactoryprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
INSTANCE
-
-
Constructor Details
-
LoggingThreadFactory
private LoggingThreadFactory()
-
-
Method Details
-
instance
-