Class AsyncJobConfig.Builder
-
- All Implemented Interfaces:
public final class AsyncJobConfig.BuilderAsync Job Config Builder
- Since:
1.0.0
Elizabeth Paige Harper https://github.com/foxcapades
-
-
Field Summary
Fields Modifier and Type Field Description private JobExecutorFactoryexecutorFactoryprivate IntegerexpirationDays
-
Constructor Summary
Constructors Constructor Description AsyncJobConfig.Builder()
-
Method Summary
Modifier and Type Method Description final JobExecutorFactorygetExecutorFactory()Job Executor FactoryUsed to provide JobExecutor instances that will execute individual jobs. final UnitsetExecutorFactory(JobExecutorFactory executorFactory)Job Executor FactoryUsed to provide JobExecutor instances that will execute individual jobs. final IntegergetExpirationDays()Number of days after a job was last accessed that it may be expired and pruned. final UnitsetExpirationDays(Integer expirationDays)Number of days after a job was last accessed that it may be expired and pruned. final AsyncJobConfig.BuilderexecutorFactory(JobExecutorFactory fac)Sets the provider for JobExecutor instances that will be used to process individual jobs. final AsyncJobConfig.BuilderexpirationDays(Integer d)Sets the number of days a job can go without being accessed before being considered expired and pruned. final AsyncJobConfigbuild()-
-
Method Detail
-
getExecutorFactory
final JobExecutorFactory getExecutorFactory()
Job Executor Factory
Used to provide JobExecutor instances that will execute individual jobs.
-
setExecutorFactory
final Unit setExecutorFactory(JobExecutorFactory executorFactory)
Job Executor Factory
Used to provide JobExecutor instances that will execute individual jobs.
-
getExpirationDays
final Integer getExpirationDays()
Number of days after a job was last accessed that it may be expired and pruned.
-
setExpirationDays
final Unit setExpirationDays(Integer expirationDays)
Number of days after a job was last accessed that it may be expired and pruned.
-
executorFactory
final AsyncJobConfig.Builder executorFactory(JobExecutorFactory fac)
Sets the provider for JobExecutor instances that will be used to process individual jobs.
-
expirationDays
final AsyncJobConfig.Builder expirationDays(Integer d)
Sets the number of days a job can go without being accessed before being considered expired and pruned.
-
build
final AsyncJobConfig build()
-
-
-
-