Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
HeartbeatMonitor

Class HeartbeatMonitor

Hierarchy

java.lang.Object

Package
com.smartdevicelink.protocol.heartbeat
All Implemented Interfaces
com.smartdevicelink.protocol.heartbeat.IHeartbeatMonitor

Fields

HEARTBEAT_INTERVAL

public static final int HEARTBEAT_INTERVAL
Constant Value
5000

HEARTBEAT_INTERVAL_MAX

public static final int HEARTBEAT_INTERVAL_MAX
Constant Value
2147483647

Constructors

HeartbeatMonitor()

public HeartbeatMonitor()

Methods

getHeartbeatRunnable()

public java.lang.Runnable getHeartbeatRunnable()

isHeartbeatReceived()

public boolean isHeartbeatReceived()

start()

public void start()

stop()

public void stop()

getInterval()

public int getInterval()

setInterval( int value )

public void setInterval(int value)

Method Parameters

value

getListener()

public com.smartdevicelink.protocol.heartbeat.IHeartbeatMonitorListener getListener()

setListener( IHeartbeatMonitorListener value )

public void setListener(IHeartbeatMonitorListener value)

Method Parameters

value

notifyTransportActivity()

public void notifyTransportActivity()

heartbeatACKReceived()

public synchronized void heartbeatACKReceived()

heartbeatReceived()

public void heartbeatReceived()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section