Package jadx.gui.jobs
Interface IBackgroundTask
-
- All Superinterfaces:
Cancelable
- All Known Implementing Classes:
CancelableBackgroundTask,DecompileTask,ExportTask,SearchTask,SimpleTask,TaskWithExtraOnFinish
public interface IBackgroundTask extends Cancelable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancanBeCanceled()default booleancheckMemoryUsage()Executor will check memory usage on every tick and cancel job if no free memory available.default @Nullable java.util.function.Consumer<ITaskProgress>getProgressListener()Return progress notifications listener (use executor tick rate and thread) (Optional)default @Nullable ITaskProgressgetTaskProgress()Get task progress (Optional)java.lang.StringgetTitle()default voidonDone(ITaskInfo taskInfo)Called on executor thread after the all jobs finished.default voidonFinish(ITaskInfo taskInfo)Executed on the Event Dispatch Thread after the all jobs finished.jadx.api.utils.tasks.ITaskExecutorscheduleTasks()default inttimeLimit()Global (for all jobs) time limit in milliseconds (0 - to disable).-
Methods inherited from interface jadx.gui.jobs.Cancelable
cancel, getCancelTimeoutMS, getShutdownTimeoutMS, isCanceled
-
-
-
-
Method Detail
-
getTitle
java.lang.String getTitle()
-
scheduleTasks
jadx.api.utils.tasks.ITaskExecutor scheduleTasks()
-
onDone
default void onDone(ITaskInfo taskInfo)
Called on executor thread after the all jobs finished.
-
onFinish
default void onFinish(ITaskInfo taskInfo)
Executed on the Event Dispatch Thread after the all jobs finished.
-
canBeCanceled
default boolean canBeCanceled()
-
timeLimit
default int timeLimit()
Global (for all jobs) time limit in milliseconds (0 - to disable).
-
checkMemoryUsage
default boolean checkMemoryUsage()
Executor will check memory usage on every tick and cancel job if no free memory available.
-
getTaskProgress
@Nullable default @Nullable ITaskProgress getTaskProgress()
Get task progress (Optional)
-
getProgressListener
@Nullable default @Nullable java.util.function.Consumer<ITaskProgress> getProgressListener()
Return progress notifications listener (use executor tick rate and thread) (Optional)
-
-