com.scudata.thread.JobThread Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.thread;
/**
* ִ????????̶߳???
* @author WangXiaoJun
*
*/
public class JobThread extends Thread {
private Job job;
public JobThread(Job job) {
this.job = job;
job.reset();
}
public void run() {
try {
job.run();
} catch (Throwable e) {
job.setError(e);
}
job.finish();
}
}