T
- input-object typeS
- shared-object beanpublic class CallableJob<T extends InputFromManager,S> extends Object implements Callable<Optional<JobExecutionException>>
Task
that can be placed on different threadsConstructor and Description |
---|
CallableJob(Task<T,S> task,
ParametersUnbound<T,S> parametersUnbound,
JobStateMonitor stateMonitor,
JobDescription jobDescription,
ConcurrentJobMonitor monitor,
Optional<MessageLogger> loggerMonitor,
int showOngoingJobsLessThan)
Constructor.
|
public CallableJob(Task<T,S> task, ParametersUnbound<T,S> parametersUnbound, JobStateMonitor stateMonitor, JobDescription jobDescription, ConcurrentJobMonitor monitor, Optional<MessageLogger> loggerMonitor, int showOngoingJobsLessThan)
task
- the task that will be executed.parametersUnbound
- parameters for the task, that have yet to be bound to a job.stateMonitor
- monitors the state of a job.jobDescription
- a unique description of the job.monitor
- monitors state changes across jobs.loggerMonitor
- the logger used for the monitor.showOngoingJobsLessThan
- When the number of ongoing jobs is less than this threshold,
they are shown in event logs. 0 disables.public Optional<JobExecutionException> call()
call
in interface Callable<Optional<JobExecutionException>>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.