public interface JobExecutionWaiterFactory
| Modifier and Type | Method and Description |
|---|---|
JobExecutionWaiter |
createWaiter(long executionId,
jakarta.batch.operations.JobOperator jobOp,
long sleepTime)
Create a waiter to wait for JobExecution to reach a "final" state.
|
JobExecutionWaiter createWaiter(long executionId, jakarta.batch.operations.JobOperator jobOp, long sleepTime)
For discussion of "final" states,
executionId - JobExecution id of the execution to wait for.jobOp - Reference to JobOperator instance used to get execution id. Note the exact instance
shouldn't matter, i.e. getting a new JobOperator reference should probably result in the same
results as passing in this instance. The API contract doesn't attempt to say anything more
on this subject.sleepTime - Time to wait, in milliseconds for job execution to reach a "final" state.JobExecutionWaiter.awaitTermination()© Copyright 2013, 2020 International Business Machines Corp. and others
Licensed under the Apache License, Version 2.0