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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
abort()
Aborts the timer.protected String
createMessageHtml
(org.opencms.gwt.shared.CmsBroadcastMessage message) Generates the HTML for a single broadcast message.protected void
run()
Installs the timer which fires the RPC calls.protected static boolean
Returns if the timer should keep running.static void
start()
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:
true
if the ping timer should keep running
-
run
Installs the timer which fires the RPC calls.
-