Package thread

Source Code of thread.TBServiceThread

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();
    }
    //}
  }
 
}
TOP

Related Classes of thread.TBServiceThread

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.