Klasse JobPool
java.lang.Object
ch.nolix.core.programcontrol.jobpool.JobPool
A
JobPool
runs jobs in the background. A JobPool
uses an
optimal number of Worker
s to run several jobs efficiently.- Version:
- 2019-04-14
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
-
Methodenübersicht
-
Konstruktordetails
-
JobPool
public JobPool()
-
-
Methodendetails
-
enqueue
Enqueues the given job to the currentJobPool
.- Parameter:
job
-- Gibt zurück:
- a
IFuture
for the given job. - Löst aus:
ArgumentIsNullException
- if the given job is null.
-
containsWaitingJobs
public boolean containsWaitingJobs()- Gibt zurück:
- true if the current
JobPool
contains waiting jobs.
-
isIdle
public boolean isIdle()- Gibt zurück:
- true if the current
JobPool
is idle.
-