Class LiveServerConnection.ReconnectionDaemon

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    LiveServerConnection

    private class LiveServerConnection.ReconnectionDaemon
    extends Daemon
    The ReconnectionDaemon thread is responsible for reconnecting the module with the foreign AMQP server in case of disconnection.
    • Field Detail

      • attempts1

        private int attempts1
        Number of reconnection trials of the first step.
      • interval1

        private long interval1
        Retry interval (in milliseconds) of the first step.
      • attempts2

        private int attempts2
        Number of reconnection trials of the second step.
      • interval2

        private long interval2
        Retry interval (in milliseconds) of the second step.
      • interval3

        private long interval3
        Retry interval (in milliseconds) of the third step.
    • Constructor Detail

      • ReconnectionDaemon

        protected ReconnectionDaemon()
        Constructs a ReconnectionDaemon thread.
    • Method Detail

      • run

        public void run()
        The daemon's loop.
      • shutdown

        public void shutdown()
        Shuts the daemon down.
        Specified by:
        shutdown in class Daemon
      • close

        public void close()
        Releases the daemon's resources.
        Specified by:
        close in class Daemon