@Component
public class JobCompletionHandler
extends java.lang.Object
Constructor and Description |
---|
JobCompletionHandler(JobCompletionService jobCompletionService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
handleJobCompletion(JobFinishedEvent event)
Event listener for when a job is completed.
|
@Autowired public JobCompletionHandler(JobCompletionService jobCompletionService)
jobCompletionService
- An implementation of the job completion service.@EventListener public void handleJobCompletion(JobFinishedEvent event) throws GenieException
event
- The Spring Boot application ready event to startup onGenieException
- If there is any problem