Package thread

Source Code of thread.WYServiceThread

package thread;
import java.util.concurrent.ExecutionException;

import cputils.CPHMWYService;

/**
* (C) Copyright 2012 ZWW
*/

/**
* @author ZWW
* @date 2014-3-22 下午7:49:41
* @version V1.0
*/
public class WYServiceThread implements Runnable{
  private String issueNo;
  private boolean onsale;
  public WYServiceThread(String issueNo,boolean onsale){
    this.issueNo = issueNo;
    this.onsale = onsale;
  }
 
  @Override
  public void run() {
    CPHMWYService service = new CPHMWYService();
    service.setOnsale(onsale);
    try {
      service.writeWYHMData(issueNo, onsale);
    } catch (InterruptedException e) {
      e.printStackTrace();
    } catch (ExecutionException e) {
      e.printStackTrace();
    }
  }
 
}
TOP

Related Classes of thread.WYServiceThread

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.