Currently they all handle failures while attempting to send messages. But what are the consequences of such a failure? Should the service quit?
Another suggestion: if a connection problem occurs, start a thread that checks tries to connect to the broker or checks the service's connection, and kills the service if it can't find the broker.
Several classes send messages:
Currently they all handle failures while attempting to send messages. But what are the consequences of such a failure? Should the service quit?
Another suggestion: if a connection problem occurs, start a thread that checks tries to connect to the broker or checks the service's connection, and kills the service if it can't find the broker.