java-延時(shí)執(zhí)行-參數(shù)-任務(wù)

定義任務(wù)

成都創(chuàng)新互聯(lián)公司于2013年成立,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè)網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元太和做網(wǎng)站,已為上家服務(wù),為太和各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:028-86922220

ScheduledExecutorService scheduledExecutorService =
Executors.newScheduledThreadPool(50);
scheduledExecutorService.schedule(new DoorGuardDelUserThreadPool(vd,companyDao,preRegistrationDataDao,doorGuardService,c.getDomain()), 10*60, TimeUnit.SECONDS);

寫執(zhí)行內(nèi)容:實(shí)現(xiàn) Runnable接口@Slf4j
br/>@Slf4j
private VisitorData finalVd;

private ICompanyDao companyDao;

private IPreRegistrationDataDao preRegistrationDataDao;

private IDoorGuardService doorGuardService;

private String domain;

public DoorGuardDelUserThreadPool(VisitorData vd, ICompanyDao companyDao, IPreRegistrationDataDao preRegistrationDataDao, IDoorGuardService doorGuardService,String domain) {
this.finalVd = vd;
this.companyDao = companyDao;
this.preRegistrationDataDao = preRegistrationDataDao;
this.doorGuardService = doorGuardService;
this.domain = domain;
}

@Override
public void run() {
log.info("companyDao:"+companyDao);
log.info("finalVd.getCompany_id():"+finalVd.getCompany_id());
log.info("finalVd.getPre_registration_id() :"+finalVd.getPre_registration_id() );
log.info("domain :"+domain );

}

網(wǎng)頁(yè)標(biāo)題:java-延時(shí)執(zhí)行-參數(shù)-任務(wù)
本文網(wǎng)址:http://bm7419.com/article42/geiiec.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航網(wǎng)站設(shè)計(jì)公司、外貿(mào)網(wǎng)站建設(shè)、動(dòng)態(tài)網(wǎng)站、網(wǎng)站排名、做網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

綿陽(yáng)服務(wù)器托管