Interface JobExecutionWaiterFactory


  • public interface JobExecutionWaiterFactory
    Factory class for JobExecutionWaiter
    • Method Detail

      • createWaiter

        JobExecutionWaiter createWaiter​(long executionId,
                                        jakarta.batch.operations.JobOperator jobOp,
                                        long sleepTime)
        Create a waiter to wait for JobExecution to reach a "final" state.

        For discussion of "final" states,

        Parameters:
        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.
        Returns:
        waiter instance
        See Also:
        JobExecutionWaiter.awaitTermination()