public class HeartbeatMonitor extends Object
| Constructor and Description |
|---|
HeartbeatMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
beat()
Alerts the monitor that a beat was detected
|
microsoft.aspnet.signalr.client.KeepAliveData |
getKeepAliveData()
Returns the Keep Alive data
|
Runnable |
getOnTimeout()
Returns the "Timeout" event handler
|
Runnable |
getOnWarning()
Returns the "Warning" event handler
|
void |
setKeepAliveData(microsoft.aspnet.signalr.client.KeepAliveData keepAliveData)
Sets the Keep Alive data
|
void |
setOnTimeout(Runnable onTimeout)
Sets the "Timeout" event handler
|
void |
setOnWarning(Runnable onWarning)
Sets the "Warning" event handler
|
void |
start(microsoft.aspnet.signalr.client.KeepAliveData keepAliveData,
ConnectionBase connection)
Starts the monitor
|
void |
stop()
Stops the heartbeat monitor
|
public void start(microsoft.aspnet.signalr.client.KeepAliveData keepAliveData,
ConnectionBase connection)
keepAliveData - Data for keep-alive timingsconnection - Connection to monitorpublic void stop()
public void beat()
public Runnable getOnWarning()
public void setOnWarning(Runnable onWarning)
onWarning - Runnablepublic Runnable getOnTimeout()
public void setOnTimeout(Runnable onTimeout)
onTimeout - Runnablepublic microsoft.aspnet.signalr.client.KeepAliveData getKeepAliveData()
public void setKeepAliveData(microsoft.aspnet.signalr.client.KeepAliveData keepAliveData)
keepAliveData - KeepAliveDataCopyright © 2019. All rights reserved.