|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutorSubmitter
Adds the ExecutorService
job submission methods without exposing the
life-cycle management API. Is tweaked to return promises
rather than anemic futures
.
Method Summary | ||
---|---|---|
|
submit(Callable<T> task)
Submits a value-returning task for execution and returns a Promise representing the pending results of the task. |
|
|
submit(Supplier<T> task)
Submits a value-returning task for execution and returns a Promise representing the pending results of the task. |
Methods inherited from interface java.util.concurrent.Executor |
---|
execute |
Method Detail |
---|
<T> Promise<T> submit(Callable<T> task)
task
- the task to submit
RejectedExecutionException
- if the task cannot be scheduled for
execution
NullPointerException
- if the task is null<T> Promise<T> submit(Supplier<T> task)
task
- the task to submit
RejectedExecutionException
- if the task cannot be scheduled for
execution
NullPointerException
- if the task is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |