Class CommentPushController
- java.lang.Object
-
- java.lang.Thread
-
- de.hybris.platform.core.threadregistry.RegistrableThread
-
- de.hybris.platform.cockpit.session.impl.AbstractPushController
-
- de.hybris.platform.cockpit.session.impl.CommentPushController
-
- All Implemented Interfaces:
PushController,java.lang.Runnable
public class CommentPushController extends AbstractPushController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.cockpit.session.impl.AbstractPushController
DEFAULT_DELAY, PARAM_UPDATE_INTERVAL, params
-
-
Constructor Summary
Constructors Constructor Description CommentPushController()CommentPushController(int updateInterval)CommentPushController(PushComponent component)CommentPushController(PushComponent component, int updateInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafter()protected voidbefore()protected CockpitCommentServicegetCockpitCommentService()TypeServicegetCockpitTypeService()booleanisUpdateNeeded()Returns whether an update is required or not.protected voidloadParameters()voidupdate()Called whenever an update is needed i.e.-
Methods inherited from class de.hybris.platform.cockpit.session.impl.AbstractPushController
addEvent, getComponent, getDesktop, getParameters, getSession, getUpdateInterval, getWebApplicationContext, internalRun, isDone, setComponent, setDone, setParameters, setUpdateInterval, startController, toString
-
Methods inherited from class de.hybris.platform.core.threadregistry.RegistrableThread
registerThread, run, unregisterThread, withInitialInfo
-
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
-
-
-
-
Constructor Detail
-
CommentPushController
public CommentPushController()
-
CommentPushController
public CommentPushController(int updateInterval)
-
CommentPushController
public CommentPushController(PushComponent component)
-
CommentPushController
public CommentPushController(PushComponent component, int updateInterval)
-
-
Method Detail
-
after
protected void after()
- Specified by:
afterin classAbstractPushController
-
before
protected void before()
- Specified by:
beforein classAbstractPushController
-
isUpdateNeeded
public boolean isUpdateNeeded()
Description copied from interface:PushControllerReturns whether an update is required or not.- Returns:
trueif an update is needed,falseotherwise- See Also:
PushController.update()
-
update
public void update()
Description copied from interface:PushControllerCalled whenever an update is needed i.e. whenPushController.isUpdateNeeded()has returnedtrue. Typically createsCockpitEvents and adds them to a special event queue by calling thePushComponent.addEvent(CockpitEvent)method on thePushComponentreturned byPushController.getComponent().
-
loadParameters
protected void loadParameters()
- Overrides:
loadParametersin classAbstractPushController
-
getCockpitCommentService
protected CockpitCommentService getCockpitCommentService()
-
getCockpitTypeService
public TypeService getCockpitTypeService()
-
-