public class Heartbeat extends Object
| Constructor and Description |
|---|
Heartbeat(Registry registry)
Creates a new instance connected to the given registry.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getInterval() |
void |
schedule()
Updates the schedule of the heartbeat to match the set interval.
|
void |
send()
Sends a heartbeat to the server.
|
void |
setInterval(int heartbeatInterval)
Changes the heartbeatInterval in runtime and applies it.
|
public Heartbeat(Registry registry)
registry - the global registrypublic void send()
public int getInterval()
public void schedule()
public final void setInterval(int heartbeatInterval)
heartbeatInterval - new interval in seconds.Copyright © 2000–2021 Vaadin Ltd. All rights reserved.