private class LiveServerConnection.ReconnectionDaemon extends Daemon
ReconnectionDaemon
thread is responsible for reconnecting
the module with the foreign AMQP server in case of disconnection.Modifier and Type | Field and Description |
---|---|
private int |
attempts1
Number of reconnection trials of the first step.
|
private int |
attempts2
Number of reconnection trials of the second step.
|
private long |
interval1
Retry interval (in milliseconds) of the first step.
|
private long |
interval2
Retry interval (in milliseconds) of the second step.
|
private long |
interval3
Retry interval (in milliseconds) of the third step.
|
Modifier | Constructor and Description |
---|---|
protected |
ReconnectionDaemon()
Constructs a
ReconnectionDaemon thread. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases the daemon's resources.
|
void |
run()
The daemon's loop.
|
void |
shutdown()
Shuts the daemon down.
|
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setName, setPriority, setThreadGroup, start, stop, toString
private int attempts1
private long interval1
private int attempts2
private long interval2
private long interval3
Copyright © 2022 ScalAgent D.T.. All rights reserved.