Class JobPool
java.lang.Object
ch.nolix.base.programcontrol.jobpool.JobPool
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JobPool
public JobPool()
-
-
Method Details
-
enqueue
Enqueues the given job to the currentJobPool.- Parameters:
job-- Returns:
- a
IFuturefor the given job. - Throws:
RuntimeException- if the given job is null.
-
containsWaitingJobs
public boolean containsWaitingJobs()- Returns:
- true if the current
JobPoolcontains waiting jobs, false otherwise.
-
isIdle
public boolean isIdle()- Returns:
- true if the current
JobPoolis idle, false otherwise.
-