欢迎来到天天文库
浏览记录
ID:34607051
大小:64.76 KB
页数:15页
时间:2019-03-08
《java学习教程-java多线程(代码版)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、http://www.moliying.com1) packagecom.sfpay.sypay.msp.process; publicinterfaceServiceHolder{ TgetService(); } 2) packagecom.sfpay.sypay.msp.process.service.impl; importjava.net.Inet4Address; importjava.net.InetAddress; importjava.net.NetworkInterface; import
2、java.util.ArrayList; importjava.util.Enumeration; importjava.util.List; importjava.util.concurrent.BlockingQueue; importjava.util.concurrent.atomic.AtomicBoolean; importorg.apache.commons.lang3.StringUtils; importorg.slf4j.Logger; importorg.slf4j.LoggerFactory
3、; importcom.sfpay.sypay.msp.common.enums.StatusCode; importcom.sfpay.sypay.msp.dao.ICourierSfjSendDao; importcom.sfpay.sypay.msp.process.ServiceHolder; importcom.sfpay.sypay.order.service.IPrefBusinessService; importcom.sfpay.sypay.order.valueobject.dto.PrefBu
4、sinessRequest; importcom.sfpay.sypay.order.valueobject.dto.PrefBusinessResponse; /** 磨砺营IT教育版权所有http://www.moliying.com*非线支付,给收派员送顺丰金任务 * *@authorsfhq703 * */ publicclassPrefSenderRunimplementsRunnable{ privateLoggerlogger=LoggerFactory.getLogger(PrefSenderRun
5、.class); privateBlockingQueue>senderQueue=null; privateServiceHolderprefBusinessService;//发送奖励对象 privateServiceHoldercourierSfjSendDao; privateAtomicBooleanisTodayTaskCompletePref=null; privat
6、eintrunNum=0; privateAtomicBooleanisExecutePref=null; /** * *@paramsenderQueue * :下发队列 *@paramvoucherManagerService * :下游系统service *@paramcourierSfjSendDao * :发送DAO *@paramisTodayTaskComplete * :调度是否完成标示 */ 磨砺营IT教育版权所有ht
7、tp://www.moliying.compublicPrefSenderRun(BlockingQueue>senderQueue, ServiceHolderprefBusinessService, ServiceHoldercourierSfjSendDao, AtomicBooleanisTodayTaskCompletePref,intrunNum, AtomicBool
8、eanisExecutePref){ super(); this.senderQueue=senderQueue; this.prefBusinessService=prefBusinessService; this.courierSfjSendDao=courierSfjSendDao; this.isTodayTaskCompletePref=isTod
此文档下载收益归作者所有