// TODO 30秒間隔はコンフィグ設定できた方が良い
final long needSleep = (30 * 1000L) - (now - lastStartTime);
if(needSleep > 0L) {
- publish(new DownloadProgress(DownloadStatus.PROCESS, 0.0, "過剰アクセス抑制待機 " + needSleep / 1000));
+ publish(new DownloadProgress(DownloadStatus.PROCESS, -1.0, "過剰アクセス抑制待機 " + needSleep / 1000));
Thread.sleep(needSleep);
}
lastStartTime = new Date().getTime();