Package io.jmix.ui.executor.impl
Class WebBackgroundWorker
java.lang.Object
io.jmix.ui.executor.impl.WebBackgroundWorker
- All Implemented Interfaces:
 BackgroundWorker
@Component("ui_BackgroundWorker")
public class WebBackgroundWorker
extends Object
implements BackgroundWorker
Web implementation of 
BackgroundWorker- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationEventPublisherprotected CurrentAuthenticationprotected ExecutorServiceprotected UiBackgroundTaskPropertiesprotected TimeSourceprotected WatchDog - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidvoiddestroy()Obtain UI access for later use from background thread.<T,V> BackgroundTaskHandler<V> handle(BackgroundTask<T, V> task) Create handler for a background task.voidsetProperties(UiBackgroundTaskProperties properties)  
- 
Field Details
- 
watchDog
 - 
currentAuthentication
 - 
applicationEventPublisher
@Autowired protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher - 
timeSource
 - 
properties
 - 
executorService
 
 - 
 - 
Constructor Details
- 
WebBackgroundWorker
public WebBackgroundWorker() 
 - 
 - 
Method Details
- 
setProperties
 - 
createThreadPoolExecutor
protected void createThreadPoolExecutor() - 
destroy
@PreDestroy public void destroy() - 
handle
Description copied from interface:BackgroundWorkerCreate handler for a background task. The handler is used to control the task execution.- Specified by:
 handlein interfaceBackgroundWorker- Type Parameters:
 T- progress measure unitV- task result type- Parameters:
 task- background task instance- Returns:
 - task handler
 
 - 
getUIAccessor
Description copied from interface:BackgroundWorkerObtain UI access for later use from background thread. Can be invoked only from UI thread.- Specified by:
 getUIAccessorin interfaceBackgroundWorker- Returns:
 - ui accessor object that allows to read/write state of UI
 
 - 
checkUIAccess
public void checkUIAccess()- Specified by:
 checkUIAccessin interfaceBackgroundWorker
 
 -