V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  yaohonv  ›  全部回复第 1 页 / 共 1 页
回复总数  2
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   ·   我们的愿景   ·   实用小工具   ·   2943 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 13:02 · PVG 21:02 · LAX 06:02 · JFK 09:02
Developed with CodeLauncher
♥ Do have faith in what you're doing.