Package com.reborn.tasks
Class ValueTask<T>
- java.lang.Object
-
- com.reborn.tasks.BaseTask<T>
-
- com.reborn.tasks.ValueTask<T>
-
- All Implemented Interfaces:
ICancelable,ITask,IValueTask<T>
public class ValueTask<T> extends BaseTask<T>
-
-
Field Summary
-
Fields inherited from class com.reborn.tasks.BaseTask
_exception, _onComplete, _onError, _onSuccess, _onUpdate, _preExecute, _result, _resultSet, _state
-
-
Constructor Summary
Constructors Constructor Description ValueTask(ThrowingFunction<ITaskOperator,T> callable, ITaskExecutor taskExecutor)ValueTask(T result, ITaskExecutor taskExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICancelableexecute(ITaskExecutor executor)-
Methods inherited from class com.reborn.tasks.BaseTask
cancel, checkForValidState, getException, getResult, getState, isCanceled, onComplete, onError, onExecute, onResultErrored, onResultSucceeded, onSuccess, onUpdate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.reborn.tasks.ITask
execute, onComplete, onError, onUpdate
-
Methods inherited from interface com.reborn.tasks.IValueTask
getResult, onComplete, onSuccess
-
-
-
-
Constructor Detail
-
ValueTask
public ValueTask(ThrowingFunction<ITaskOperator,T> callable, ITaskExecutor taskExecutor)
-
ValueTask
public ValueTask(T result, ITaskExecutor taskExecutor)
-
-
Method Detail
-
execute
public ICancelable execute(ITaskExecutor executor)
-
-