Class JobWorkerConfiguration
java.lang.Object
com.bluebell.greenhouse.platform.configuration.JobWorkerConfiguration
@Configuration
@EnableConfigurationProperties(JobSettings.class)
public class JobWorkerConfiguration
extends Object
Configures the bounded durable-job worker pool and process worker identity.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjobWorkerExecutor(JobSettings jobSettings) Builds the durable-job executor.Creates the stable identity for this application process.
-
Field Details
-
JOB_WORKER_EXECUTOR
-
JOB_WORKER_ID
-
-
Constructor Details
-
JobWorkerConfiguration
public JobWorkerConfiguration()
-
-
Method Details
-
jobWorkerExecutor
Builds the durable-job executor. The pool carries no local backlog: a claimed attempt either starts on a worker thread immediately or is rejected and returned to the queue, so a claim can never sit waiting without a heartbeat and lose its lease before it begins.- Parameters:
jobSettings- validated durable job settings- Returns:
- configured executor
-
jobWorkerId
Creates the stable identity for this application process.- Returns:
- worker identifier
-