tigase.server

## Class ConnectionManager.Watchdog

- java.lang.Object
- - tigase.server.ConnectionManager.Watchdog

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

      protected class ConnectionManager.Watchdog
      extends Object
      implements Runnable

  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 Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `Watchdog()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected long` | `getDurationSinceLastTransfer(XMPPIOService service)`
    `void` | `run()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Watchdog

          protected Watchdog()

  - ### Method Detail

    - #### getDurationSinceLastTransfer

          protected long getDurationSinceLastTransfer(XMPPIOService service)

    - #### run

          public void run()

      Specified by:
        `run` in interface `Runnable`

Copyright © 2022 "Tigase, Inc.". All rights reserved.