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,Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class de.hybris.platform.cockpit.session.impl.AbstractPushController
DEFAULT_DELAY, PARAM_UPDATE_INTERVAL, paramsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionCommentPushController(int updateInterval) CommentPushController(PushComponent component) CommentPushController(PushComponent component, int updateInterval) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()protected voidbefore()protected CockpitCommentServicebooleanReturns whether an update is required or not.protected voidvoidupdate()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, toStringMethods inherited from class de.hybris.platform.core.threadregistry.RegistrableThread
registerThread, run, unregisterThread, withInitialInfoMethods 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 Details
-
CommentPushController
public CommentPushController() -
CommentPushController
public CommentPushController(int updateInterval) -
CommentPushController
-
CommentPushController
-
-
Method Details
-
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:
-
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
-
getCockpitTypeService
-