Klasse Connections

java.lang.Object
org.sonews.daemon.DaemonRunner
org.sonews.daemon.Connections
Alle implementierten Schnittstellen:
Runnable, DaemonRunnable

public final class Connections extends DaemonRunner
Daemon thread collecting all NNTPConnection instances. The thread checks periodically if there are stale/timed out connections and removes and purges them properly.
Seit:
sonews/0.5.0
Autor:
Christian Lins
  • Felddetails

  • Konstruktordetails

    • Connections

      private Connections()
  • Methodendetails

    • getInstance

      public static Connections getInstance()
      Gibt zurück:
      Active Connections instance.
    • add

      public void add(NNTPConnection conn)
      Adds the given NNTPConnection to the Connections management.
      Parameter:
      conn -
      Siehe auch:
      • Ungültige Referenz
        org.sonews.daemon.SynchronousNNTPConnection
    • get

      public NNTPConnection get(SocketChannel channel)
      Parameter:
      channel -
      Gibt zurück:
      NNTPConnection instance that is associated with the given SocketChannel.
    • run

      public void run()
      Run loops. Checks periodically for timed out connections and purged them from the lists.