Thread.sleep(intervalSec * 1000);
System.err.println("sleep end");
} catch (InterruptedException e) {
LOGGER.error("sudden interrupt", e);
}
executor.submit(new StackExchangeStreamerWithSearch(search_query,
initTimestamp, initTimestamp + intervalSec));
} else {
intervalSec = 30240;
try {
new StackExchangeStreamerWithSearch(search_query, initTimestamp,
initTimestamp + intervalSec).run();
} catch (Exception e) {
e.printStackTrace();
}
}