Package org.opencms.gwt.client
Class CmsBroadcastTimer
java.lang.Object
org.opencms.gwt.client.CmsBroadcastTimer
A timer which sends an RPC call regularly to keep the session alive and receive workplace broadcasts.
- Since:
- 9.5.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidabort()Aborts the timer.protected StringcreateMessageHtml(org.opencms.gwt.shared.CmsBroadcastMessage message) Generates the HTML for a single broadcast message.protected voidrun()Installs the timer which fires the RPC calls.protected static booleanReturns if the timer should keep running.static voidstart()Starts the timer.
-
Field Details
-
PING_INTERVAL
The interval for the RPC calls.- See Also:
-
-
Constructor Details
-
CmsBroadcastTimer
public CmsBroadcastTimer()
-
-
Method Details
-
abort
Aborts the timer. -
start
Starts the timer. -
shouldKeepRunning
Returns if the timer should keep running.- Returns:
trueif the ping timer should keep running
-
run
Installs the timer which fires the RPC calls.
-