public interface JobExecutionWaiter
Modifier and Type | Method and Description |
---|---|
javax.batch.runtime.JobExecution |
awaitTermination()
The waiter instance is associated with an execution id via the factory create method.
|
javax.batch.runtime.JobExecution awaitTermination() throws JobExecutionTimeoutException
This method blocks and only returns when the JobExecution reaches one of these states, which we refer to here as a 'final' state (By 'state' we mean "batch status"). The Jakarta Batch specification doesn't formally define a set of 'final' states or use this term explicitly, so we list here what we consider to be the 'final' states for the TCK purposes.
Final states:
(This seems like an obvious, uncontroversial interpretation):
JobExecutionTimeoutException
- Thrown when JobExecution hasn't reached final state after
the timeout specified in the factory create method.JobExecutionWaiterFactory.createWaiter(...)
© Copyright IBM Corp. 2015
Licensed under the Apache License, Version 2.0