@Component(value="cuba_BackgroundWorker") public class WebBackgroundWorker extends java.lang.Object implements BackgroundWorker
BackgroundWorker
NAME
Constructor and Description |
---|
WebBackgroundWorker() |
Modifier and Type | Method and Description |
---|---|
void |
checkUIAccess() |
void |
destroy() |
UIAccessor |
getUIAccessor()
Obtain UI access for later use from background thread.
|
<T,V> BackgroundTaskHandler<V> |
handle(BackgroundTask<T,V> task)
Create handler for a background task.
|
void |
setConfiguration(Configuration configuration) |
@Inject public void setConfiguration(Configuration configuration)
@PreDestroy public void destroy()
public <T,V> BackgroundTaskHandler<V> handle(BackgroundTask<T,V> task)
BackgroundWorker
handle
in interface BackgroundWorker
T
- progress measure unitV
- task result typetask
- background task instancepublic UIAccessor getUIAccessor()
BackgroundWorker
getUIAccessor
in interface BackgroundWorker
public void checkUIAccess()
checkUIAccess
in interface BackgroundWorker