Class CmsBroadcastTimer

java.lang.Object
org.opencms.gwt.client.CmsBroadcastTimer

public class CmsBroadcastTimer extends Object
A timer which sends an RPC call regularly to keep the session alive and receive workplace broadcasts.

Since:
9.5.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The interval for the RPC calls.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    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
    Starts the timer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • abort

      public static void abort()
      Aborts the timer.

    • start

      public static void start()
      Starts the timer.

    • shouldKeepRunning

      protected static boolean shouldKeepRunning()
      Returns if the timer should keep running.

      Returns:
      true if the ping timer should keep running
    • createMessageHtml

      protected String createMessageHtml(org.opencms.gwt.shared.CmsBroadcastMessage message)
      Generates the HTML for a single broadcast message.

      Parameters:
      message - the message
      Returns:
      the HTML string
    • run

      protected void run()
      Installs the timer which fires the RPC calls.