|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReconnectionStrategy
Implementations are strategies used by MqttClient implementation to reconnect to the broker if the connection is lost. Implementations must be thread
safe.
| Method Summary | |
|---|---|
ReconnectionStrategy |
clone()
|
void |
connectionEstablished()
Called by an MqttClient instance when a connection to the broker is established. |
long |
connectionLost(MqttClient client,
Throwable cause)
Called by an MqttClient each time the connection to the broker is lost other than by an intentional disconnect. |
| Method Detail |
|---|
long connectionLost(MqttClient client,
Throwable cause)
MqttClient each time the connection to the broker is lost other than by an intentional disconnect.
cause - The exception that cause the connection to close or resulted from the connection closing. May be null.
void connectionEstablished()
MqttClient instance when a connection to the broker is established.
ReconnectionStrategy clone()
MqttClientFactory.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||