【发布时间】:2015-12-20 19:13:05
【问题描述】:
日志:
[pool-1-thread-1] TRACE apns.ApnsPushConnection - 输入方法 queryFeedbackService 参数
[pool-3-thread-1] TRACE apns.ApnsPushConnection - 输入方法 queryFeedbackService 参数
[pool-1-thread-1] TRACE apns.ApnsPushConnection - 返回方法 queryFeedbackService
[pool-3-thread-1] TRACE apns.ApnsPushConnection - 返回方法 queryFeedbackService
//In Singleton class constructor
ScheduledExectorService obj = Executors.newSingleThreadScheduledExecutor();
obj.scheduleAtFixedDelay(new runnable(){
public void run(){
classObj.queryFeedbackService();
}
}),20,60,TimeUnit.SECONDS);
//method called by thread
public void queryFeedbackService()
{
code here
}
【问题讨论】:
-
请发布您的代码..
-
嗨redflar3,请看我下面的评论
标签: java threadpool executorservice threadpoolexecutor