Class LoggingThreadFactory

java.lang.Object
io.github.jeremylong.openvulnerability.client.LoggingThreadFactory

final class LoggingThreadFactory extends Object
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 Details

    • LOG

      private static final org.slf4j.Logger LOG
    • INSTANCE

      private static final ThreadFactory INSTANCE
  • Constructor Details

    • LoggingThreadFactory

      private LoggingThreadFactory()
  • Method Details