yaohonv 最近的时间轴更新
yaohonv

yaohonv

lighten my lights , lighten your code
V2EX 第 7693 号会员,加入于 2011-04-07 14:12:44 +08:00
lighten my lights , lighten your code
yaohonv 最近回复了
2011-04-08 08:47:39 +08:00
回复了 beta4better 创建的主题 Google App Engine 提供限时免费GAE反向代理服务
2011-04-07 16:29:07 +08:00
回复了 yaohonv 创建的主题 iDev UI与其他业务线程的java code实例
// 定义一个带定时的线程
final ScheduledExecutorService timer = Executors
.newScheduledThreadPool(1);
final Runnable beeper = new Runnable() {

public void run() {
if (shell.isDisposed())
timer.shutdown();
display.syncExec(new Runnable() {
public void run() {
DirectMessageParam temp = ConWeibo
.getNearDirectMessage(weibo,
dmp.getNearestID(), 1375764302);
if (null != temp) {
text1.insert(temp.getContent() + "\r\n");
dmp = temp;
}

}
});
}
};
timer.scheduleAtFixedRate(beeper, 1, 5, TimeUnit.SECONDS);
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2850 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 13:40 · PVG 21:40 · LAX 06:40 · JFK 09:40
Developed with CodeLauncher
♥ Do have faith in what you're doing.