Class AbstractPushController

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int DEFAULT_DELAY  
      static java.lang.String PARAM_UPDATE_INTERVAL  
      protected java.util.Map<java.lang.String,​java.lang.Object> params  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addEvent​(CockpitEvent cockpitEvent)  
      protected abstract void after()  
      protected abstract void before()  
      PushComponent getComponent()
      Returns this push controller's PushComponent.
      protected org.zkoss.zk.ui.Desktop getDesktop()  
      java.util.Map<java.lang.String,​java.lang.Object> getParameters()  
      protected UISession getSession()  
      int getUpdateInterval()
      Returns the update interval in milliseconds for this push controller.
      protected org.springframework.web.context.WebApplicationContext getWebApplicationContext()  
      protected void internalRun()  
      protected boolean isDone()  
      protected void loadParameters()  
      void setComponent​(PushComponent component)
      Sets the PushComponent to be used by this push controller to component.
      void setDone()
      Tells this push controller to stop processing server push events.
      void setParameters​(java.util.Map<java.lang.String,​java.lang.Object> params)  
      void setUpdateInterval​(int milliseconds)
      Sets the update interval in milliseconds for this push controller.
      void startController()
      Starts this push controller.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • PARAM_UPDATE_INTERVAL

        public static final java.lang.String PARAM_UPDATE_INTERVAL
        See Also:
        Constant Field Values
      • params

        protected final java.util.Map<java.lang.String,​java.lang.Object> params
    • Constructor Detail

      • AbstractPushController

        public AbstractPushController()
      • AbstractPushController

        public AbstractPushController​(PushComponent pushComp)
      • AbstractPushController

        public AbstractPushController​(PushComponent pushComp,
                                      int updateInterval)
    • Method Detail

      • setUpdateInterval

        public void setUpdateInterval​(int milliseconds)
        Description copied from interface: PushController
        Sets the update interval in milliseconds for this push controller.
        Specified by:
        setUpdateInterval in interface PushController
        Parameters:
        milliseconds - the delay between updates (or update requests) in milliseconds
      • getUpdateInterval

        public int getUpdateInterval()
        Description copied from interface: PushController
        Returns the update interval in milliseconds for this push controller.
        Specified by:
        getUpdateInterval in interface PushController
        Returns:
        the delay between updates (or update requests) in milliseconds
      • getDesktop

        protected org.zkoss.zk.ui.Desktop getDesktop()
      • isDone

        protected boolean isDone()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Thread
      • addEvent

        protected void addEvent​(CockpitEvent cockpitEvent)
      • getSession

        protected UISession getSession()
      • getWebApplicationContext

        protected org.springframework.web.context.WebApplicationContext getWebApplicationContext()
                                                                                          throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • before

        protected abstract void before()
      • after

        protected abstract void after()
      • setParameters

        public void setParameters​(java.util.Map<java.lang.String,​java.lang.Object> params)
        Specified by:
        setParameters in interface PushController
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.Object> getParameters()
        Specified by:
        getParameters in interface PushController
      • loadParameters

        protected void loadParameters()