Redian新闻
>
简单的schedule job, 你们用什么
avatar
简单的schedule job, 你们用什么# Java - 爪哇娇娃
r*o
1
产生nightly report, 我打算就用java.util.Timer, TimerTask,
有别的好方法么?
avatar
g*g
2
Quartz gives you finer control.

【在 r**o 的大作中提到】
: 产生nightly report, 我打算就用java.util.Timer, TimerTask,
: 有别的好方法么?

avatar
A*o
3
chron job?

【在 r**o 的大作中提到】
: 产生nightly report, 我打算就用java.util.Timer, TimerTask,
: 有别的好方法么?

avatar
o*a
4
Using quartz ( some learning curve)
or ScheduledExecutorService (after java 1.5)

【在 r**o 的大作中提到】
: 产生nightly report, 我打算就用java.util.Timer, TimerTask,
: 有别的好方法么?

avatar
o*a
5
Timer has two drawback:
1 single thread, which means if two timertask overlap each other, it is
unpreditable behavior
2 if a timertask throws uncheck exception, It is uncaught by timer and timer
will silently cancel the future task.

【在 r**o 的大作中提到】
: 产生nightly report, 我打算就用java.util.Timer, TimerTask,
: 有别的好方法么?

avatar
b*y
6
Although a java fan, I use linux cron job most of the time.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。