Klasse PlatformThreadedNNTPDaemon

Alle implementierten Schnittstellen:
Runnable, DaemonRunnable, NNTPDaemonRunnable

@Component public class PlatformThreadedNNTPDaemon extends ThreadedNNTPDaemon
An NNTP daemon listening for incoming connections. This implementation of NNTPDaemonRunnable uses a dynamically growing and shrinking pool of platform threads to handle the incoming connections. The number of threads is between min(4, 2*CPU-Cores) to min(128, 20*CPU_Cores). Due to the hard upper limit this effectively limits the maximum number of connections that can be processed in parallel. If there are more than 128 (or 20*CPU_Cores) incoming connections, new connections will be rejected. Due to this limitations the VirtualThreadedNNTPDaemon is the better choice in almost any situation.
Autor:
Christian Lins
  • Felddetails

    • log

      private final org.slf4j.Logger log
    • numMinThreads

      private final int numMinThreads
    • numMaxThreads

      private final int numMaxThreads
    • connQueue

      private final BlockingQueue<Runnable> connQueue
  • Konstruktordetails

    • PlatformThreadedNNTPDaemon

      public PlatformThreadedNNTPDaemon()
  • Methodendetails

    • run

      public void run()
      Opens a server socket on the configured port and waits for incoming connections.