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 Workers to run several jobs efficiently.- Version:
- 2019-04-14
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
JobPool
public JobPool()
-
-
Methodendetails
-
enqueue
Enqueues the given job to the currentJobPool.- Parameter:
job-- Gibt zurück:
- a
IFuturefor the given job. - Löst aus:
ArgumentIsNullException- if the given job is null.
-
containsWaitingJobs
public boolean containsWaitingJobs()- Gibt zurück:
- true if the current
JobPoolcontains waiting jobs.
-
isIdle
public boolean isIdle()- Gibt zurück:
- true if the current
JobPoolis idle.
-