Package tigase.server

Class ConnectionManager.Watchdog

  • All Implemented Interfaces:
    Runnable
    Direct Known Subclasses:
    ClusterConnectionManager.Watchdog
    Enclosing class:
    ConnectionManager<IO extends XMPPIOService<?>>

    protected class ConnectionManager.Watchdog
    extends Thread
    Class looks in all established connections and checks whether any of them is dead by performing either whitspace or XMPP ping. If client fails to respond within defined time then the service is stopped.
    • Constructor Detail

      • Watchdog

        protected Watchdog()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • shutdown

        public void shutdown()
      • getDurationSinceLastTransfer

        protected long getDurationSinceLastTransfer​(XMPPIOService service)