public class PlanCallback extends Object implements ToIntFunction<org.thales.punch.libraries.plan.pojo.JobExecution>
ThreadWorkerApplicaiton will act as supervisor of the running plan; stop() method is called for the plan to free up resources;
Constructor and Description |
---|
PlanCallback(org.thales.punch.libraries.shiva.api.Application application,
Path confDir,
String templateFileName,
Path initialTemplateFilePath,
Path channelFolderPath,
String workerId) |
Modifier and Type | Method and Description |
---|---|
int |
applyAsInt(org.thales.punch.libraries.plan.pojo.JobExecution value)
The callback function.
|
public int applyAsInt(org.thales.punch.libraries.plan.pojo.JobExecution value)
applyAsInt
in interface ToIntFunction<org.thales.punch.libraries.plan.pojo.JobExecution>
Copyright © 2022. All rights reserved.