public class AlarmPingSender
extends java.lang.Object
implements org.eclipse.paho.client.mqttv3.MqttPingSender
This class implements the MqttPingSender
pinger interface
allowing applications to send ping packet to server every keep alive interval.
MqttPingSender
Modifier and Type | Class and Description |
---|---|
(package private) class |
AlarmPingSender.AlarmReceiver |
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
TAG |
Constructor and Description |
---|
AlarmPingSender(MqttService service) |
static final java.lang.String TAG
public AlarmPingSender(MqttService service)
public void init(org.eclipse.paho.client.mqttv3.internal.ClientComms comms)
init
in interface org.eclipse.paho.client.mqttv3.MqttPingSender
public void start()
start
in interface org.eclipse.paho.client.mqttv3.MqttPingSender
public void stop()
stop
in interface org.eclipse.paho.client.mqttv3.MqttPingSender
public void schedule(long delayInMilliseconds)
schedule
in interface org.eclipse.paho.client.mqttv3.MqttPingSender