TParam - type of parameterTResult - type of resultpublic static class Task.Cpu.Parameter.FromFunction<TParam,TResult> extends Task.Cpu.Parameter<TParam,TResult,NoException>
Task.Cpu.Parameter.FromConsumer<TParam>, Task.Cpu.Parameter.FromFunction<TParam,TResult>Task.Cpu<T,TError extends Exception>, Task.Done<T,TError extends Exception>, Task.OnFile<T,TError extends Exception>, Task.Output, Task.Parameter<TParam,TResult,TError extends Exception>, Task.Unmanaged<TResult,TError extends Exception>NB_PRIORITES, PRIORITY_BACKGROUND, PRIORITY_IMPORTANT, PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_RATHER_IMPORTANT, PRIORITY_RATHER_LOW, PRIORITY_TOP, PRIORITY_URGENT, STATUS_BLOCKED, STATUS_DONE, STATUS_EXECUTED, STATUS_NOT_STARTED, STATUS_RUNNING, STATUS_STARTED_READY, STATUS_STARTED_WAITING, taskJoin| Constructor and Description |
|---|
FromFunction(String description,
byte priority,
Function<TParam,TResult> fct)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TResult |
run()
Method to implement to execute the task.
|
getParameter, setParameter, startcancel, cancelIfExecutionNotStarted, changeNextExecutionTime, ensureUnblocked, executeAgainAt, executeAgainIn, executeAt, executeEvery, executeIn, executeNextOccurenceNow, executeNextOccurenceNow, getApplication, getCancelEvent, getDescription, getError, getMaxBlockingTimeInNanoBeforeToLog, getOutput, getPriority, getResult, getStatus, getTaskManager, hasError, isCancelled, isCancelling, isDone, isRunning, isStarted, isSuccessful, ondone, setDescription, setDone, setError, setPriority, start, startOn, startOn, startOnDone, stopRepeat, toStringpublic TResult run() throws NoException, CancelException
Taskrun in class Task<TResult,NoException>NoExceptionCancelExceptionCopyright © 2019. All rights reserved.