|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scheduler
An interface for interacting with an ExecutorService
.
A thread pool (ExecutorService
) often
encapsulates a set of background tasks. In many concurrent
designs, these background tasks are themselves created and scheduled
for execution by special background tasks dedicated to finding
and scheduling the work. This interface is an abstraction of that
scheduling task.
Method Summary | |
---|---|
int |
inProgressCount()
Returns the number of tasks scheduled by this instance that have yet to complete. |
int |
schedule(ExecutorService service)
Schedules work on the given ExecutorService . |
Method Detail |
---|
int schedule(ExecutorService service)
ExecutorService
.
int inProgressCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |