信盈達(dá)盈享課堂-軟件測(cè)試技術(shù)實(shí)戰(zhàn)訓(xùn)練營(yíng)
2022-12-22 14:40 作者:娜娜絡(luò)絡(luò) | 我要投稿
? ? ? scheduler,
? ? ? ? ? ? ? ? ? ?cacheRefreshExecutor,
? ? ? ? ? ? ? ? ? ?registryFetchIntervalSeconds,
? ? ? ? ? ? ? ? ? ?TimeUnit.SECONDS,
? ? ? ? ? ? ? ? ? ?expBackOffBound,
? ? ? ? ? ? ? ? ? ?new CacheRefreshThread()
? ? ? ? ? ?);
? ? ? ? ? ?// 注冊(cè)refresh任務(wù),負(fù)責(zé)刷新從eureka server獲取的注冊(cè)信息
? ? ? ? ? ?scheduler.schedule(
? ? ? ? ? ? ? ? ? ?cacheRefreshTask,
? ? ? ? ? ? ? ? ? ?registryFetchIntervalSeconds, TimeUnit.SECONDS);
? ? ? ?}
標(biāo)簽: