Class WorkflowPushController
- 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.WorkflowPushController
-
- All Implemented Interfaces:
PushController,java.lang.Runnable
public class WorkflowPushController extends AbstractPushController
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAM_ATT_CLASS_NAMES-
Fields inherited from class de.hybris.platform.cockpit.session.impl.AbstractPushController
DEFAULT_DELAY, PARAM_UPDATE_INTERVAL, params
-
-
Constructor Summary
Constructors Constructor Description WorkflowPushController()WorkflowPushController(int updateInterval)WorkflowPushController(PushComponent component)WorkflowPushController(PushComponent component, int updateInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafter()protected voidbefore()protected java.util.List<java.lang.String>getAttachmentClassNames()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
-
-
-
-
Field Detail
-
PARAM_ATT_CLASS_NAMES
public static final java.lang.String PARAM_ATT_CLASS_NAMES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkflowPushController
public WorkflowPushController()
-
WorkflowPushController
public WorkflowPushController(int updateInterval)
-
WorkflowPushController
public WorkflowPushController(PushComponent component)
-
WorkflowPushController
public WorkflowPushController(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().
-
getAttachmentClassNames
protected java.util.List<java.lang.String> getAttachmentClassNames()
-
loadParameters
protected void loadParameters()
- Overrides:
loadParametersin classAbstractPushController
-
-