Interface ExecutableTask<R,S>
- All Superinterfaces:
HasAsyncManager,Task<R,S>
- All Known Subinterfaces:
Queueable<T,R>
- All Known Implementing Classes:
ExecutableTaskBase,QueueableBase
-
Method Summary
Modifier and TypeMethodDescription@NotNull ComputationResult<R,S> execute()Executes this task in the current thread.default @NotNull ComputationResult<R,S> Executes this task in the current thread.Methods inherited from interface de.linusdev.lutils.async.manager.HasAsyncManager
getAsyncManagerMethods inherited from interface de.linusdev.lutils.async.Task
getName, queue, queue, queue, queue, queueAndSetBeforeExecutionListener, queueAndWait, queueAndWriteToFile
-
Method Details
-
execute
Executes this task in the current thread. Does not callAsyncManager.checkThread().- Returns:
ComputationResultresult.- Throws:
InterruptedException
-
executeHere
@NotNull default @NotNull ComputationResult<R,S> executeHere() throws NonBlockingThreadException, InterruptedExceptionExecutes this task in the current thread.- Specified by:
executeHerein interfaceTask<R,S> - Returns:
ComputationResultresult.- Throws:
NonBlockingThreadException- if the current thread is a thread ofAsyncManagerand should not be blocked. SeeAsyncManager.checkThread().InterruptedException- if the thread got interrupted while executing- See Also:
-