package thread;
import java.util.concurrent.ExecutionException;
import cputils.CPHMTBService;
/**
* (C) Copyright 2012 ZWW
*/
/**
* @author ZWW
* @date 2014-3-22 下午7:49:41
* @version V1.0
*/
public class TBServiceThread implements Runnable{
private String issueNo;
private boolean onsale;
private String userName;
public TBServiceThread(String issueNo,String userName,boolean onsale){
this.issueNo = issueNo;
this.onsale = onsale;
this.userName = userName;
}
@Override
public void run() {
//synchronized(CPHMService.class){
CPHMTBService service = new CPHMTBService();
try {
service.writeTaobaoHMData(issueNo,userName, onsale);
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
//}
}
}