Class CallableJob<T extends InputFromManager,S>
Object
CallableJob<T,S>
- Type Parameters:
T
- input-object typeS
- shared-object bean
- All Implemented Interfaces:
Callable<Optional<JobExecutionException>>
public class CallableJob<T extends InputFromManager,S>
extends Object
implements Callable<Optional<JobExecutionException>>
A job derived from a
Task
that can be placed on different threads- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionCallableJob
(Task<T, S> task, ParametersUnbound<T, S> parametersUnbound, JobStateMonitor stateMonitor, JobDescription jobDescription, ConcurrentJobMonitor monitor, Optional<MessageLogger> loggerMonitor, int showOngoingJobsLessThan) Constructor. -
Method Summary
-
Constructor Details
-
CallableJob
public CallableJob(Task<T, S> task, ParametersUnbound<T, S> parametersUnbound, JobStateMonitor stateMonitor, JobDescription jobDescription, ConcurrentJobMonitor monitor, Optional<MessageLogger> loggerMonitor, int showOngoingJobsLessThan) Constructor.- Parameters:
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.
-
-
Method Details
-
call
- Specified by:
call
in interfaceCallable<T extends InputFromManager>
-