com.scudata.parallel.UnitJob 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.parallel;
import com.scudata.thread.Job;
/**
* ???ڶ??̸߳??ڵ??????????
* @author WangXiaoJun
*
*/
class UnitJob extends Job {
private UnitClient client;
private UnitCommand command;
private Response response;
public UnitJob(UnitClient client, UnitCommand command) {
this.client = client;
this.command = command;
}
public void run() {
try {
response = client.send(command);
} finally {
client.close();
}
}
public Object getResult() {
return response.checkResult();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy