|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.communication.Heartbeat
public class Heartbeat
Handles sending of heartbeats to the server and reacting to the response
| Constructor Summary | |
|---|---|
Heartbeat()
|
|
| Method Summary | |
|---|---|
protected ApplicationConnection |
getConnection()
Deprecated. |
int |
getInterval()
|
void |
init(ApplicationConnection applicationConnection)
Initializes the heartbeat for the given application connection |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Heartbeat()
| Method Detail |
|---|
public void init(ApplicationConnection applicationConnection)
connection - the connectionpublic void send()
public int getInterval()
public void schedule()
@Deprecated protected ApplicationConnection getConnection()
public void setInterval(int heartbeatInterval)
heartbeatInterval - new interval in seconds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||