Package com.hybris.cockpitng.lazyloading
Class DefaultLazyTasksExecutor
- java.lang.Object
-
- com.hybris.cockpitng.lazyloading.DefaultLazyTasksExecutor
-
- All Implemented Interfaces:
LazyTasksExecutor
public class DefaultLazyTasksExecutor extends java.lang.Object implements LazyTasksExecutor
Default implementation of LazyTasksExecutor. Provides functionality for managing and executing lazy tasks
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringON_LAZY_LOAD_TASK_STARTED
-
Constructor Summary
Constructors Constructor Description DefaultLazyTasksExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidautoExecuteInNextUiCall()protected voidexecuteOperation(java.util.List<LazyTask> taskList)java.lang.StringgetIdentifier()java.util.List<LazyTask>getTaskList()WidgetInstanceManagergetWidgetInstanceManager()protected voidonCleanupLazyTaskExecutor()protected voidregisterCleanable(Cleanable cleanable)voidscheduleTask(LazyTask lazyTask)voidsetCleanUpCallback(Executable cleanUpCallback)voidsetCockpitThreadContextCreator(CockpitThreadContextCreator cockpitThreadContextCreator)voidsetIdentifier(java.lang.String identifier)voidsetWidgetInstanceManager(WidgetInstanceManager widgetInstanceManager)protected voidstartLongOperation(LongOperation operation)protected voidunregisterCleanable(Cleanable cleanable)
-
-
-
Field Detail
-
ON_LAZY_LOAD_TASK_STARTED
protected static final java.lang.String ON_LAZY_LOAD_TASK_STARTED
- See Also:
- Constant Field Values
-
-
Method Detail
-
scheduleTask
public void scheduleTask(LazyTask lazyTask)
- Specified by:
scheduleTaskin interfaceLazyTasksExecutor
-
getIdentifier
public java.lang.String getIdentifier()
-
autoExecuteInNextUiCall
public void autoExecuteInNextUiCall()
-
registerCleanable
protected void registerCleanable(Cleanable cleanable)
-
unregisterCleanable
protected void unregisterCleanable(Cleanable cleanable)
-
onCleanupLazyTaskExecutor
protected void onCleanupLazyTaskExecutor()
-
executeOperation
protected void executeOperation(java.util.List<LazyTask> taskList)
-
startLongOperation
protected void startLongOperation(LongOperation operation)
-
setWidgetInstanceManager
public void setWidgetInstanceManager(WidgetInstanceManager widgetInstanceManager)
-
getWidgetInstanceManager
public WidgetInstanceManager getWidgetInstanceManager()
-
getTaskList
public java.util.List<LazyTask> getTaskList()
-
setCleanUpCallback
public void setCleanUpCallback(Executable cleanUpCallback)
-
setCockpitThreadContextCreator
public void setCockpitThreadContextCreator(CockpitThreadContextCreator cockpitThreadContextCreator)
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
-
-