public class TimerPingSender extends java.lang.Object implements MqttPingSender
This class implements the IMqttPingSender
pinger interface
allowing applications to send ping packet to server every keep alive interval.
MqttPingSender
Constructor and Description |
---|
TimerPingSender() |
Modifier and Type | Method and Description |
---|---|
void |
init(ClientComms comms)
Initial method.
|
void |
schedule(long delayInMilliseconds)
Schedule next ping in certain delay.
|
void |
start()
Start ping sender.
|
void |
stop()
Stop ping sender.
|
public void init(ClientComms comms)
MqttPingSender
init
in interface MqttPingSender
public void start()
MqttPingSender
start
in interface MqttPingSender
public void stop()
MqttPingSender
stop
in interface MqttPingSender
public void schedule(long delayInMilliseconds)
MqttPingSender
schedule
in interface MqttPingSender