com.levigo.util.concurrent.tasks
Interface Task<R>
- All Superinterfaces:
- Callable<R>
- All Known Subinterfaces:
- CancelableTask<R>
- All Known Implementing Classes:
- AbstractTask
public interface Task<R>
- extends Callable<R>
Interface to be implemented by classes providing some kind of functionality that is supposed to
be executed asynchronously by a TaskExecutor
.
Tasks may implement #hashCode()
and #equals(Object)
in order to let the task
executor recognize multiply-submitted identical tasks. If the same task is submitted several
times with different scopes, the task is actually executed only once, but all scopes receive
notification about the task's completion or failure.
Methods inherited from interface java.util.concurrent.Callable |
call |
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.