Class CallableJob<T extends InputFromManager,S>

Object
CallableJob<T,S>
Type Parameters:
T - input-object type
S - 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 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