Class NotificationsIndicator.ReloadCountTask
java.lang.Object
io.jmix.flowui.backgroundtask.BackgroundTask<Void,Integer>
 
io.jmix.notificationsflowui.component.notificationsindicator.NotificationsIndicator.ReloadCountTask
- Enclosing class:
 - NotificationsIndicator
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.backgroundtask.BackgroundTask
BackgroundTask.ProgressListener<T,V>, BackgroundTask.ProgressListenerAdapter<T, V>  - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class io.jmix.flowui.backgroundtask.BackgroundTask
addProgressListener, canceled, getOwnerView, getParams, getProgressListeners, getTimeoutMilliseconds, getTimeoutSeconds, handleException, handleTimeoutException, progress, removeProgressListener 
- 
Field Details
- 
recipient
 
 - 
 - 
Constructor Details
- 
ReloadCountTask
 
 - 
 - 
Method Details
- 
run
Description copied from class:BackgroundTaskMain method that performs a task.
Called by the execution environment in a separate working thread.
Implementation of this method should support interruption:- In long loops check 
TaskLifeCycle.isInterrupted()and return if it is true - Don't swallow 
InterruptedException- return from the method or don't catch it at all 
- Specified by:
 runin classBackgroundTask<Void,Integer> - Parameters:
 taskLifeCycle- lifecycle object that allows the main method to interact with the execution environment- Returns:
 - task result
 
 - In long loops check 
 - 
done
Description copied from class:BackgroundTaskCalled by the execution environment in UI thread when the task is completed.- Overrides:
 donein classBackgroundTask<Void,Integer> - Parameters:
 result- result of execution returned byBackgroundTask.run(TaskLifeCycle)method
 
 -