filewriter - How do I get Java to write the contents of an ArrayList to a file once every minute? -
just quick question above subject. basically, i'm writing piece of software captures data network , writes external file further processing.
what want know code best use in order desired effect.
thanks time
david
i'd implement using timertask. e.g.,
int hour = 1000*60*60; int delay = 0; timer t = new timer(); t.scheduleatfixedrate(new timertask() { public void run() { // write disk ... } }, delay, hour);
otherwise quarts powerful java scheduler capable of handling more advanced scheduling needs.
Comments
Post a Comment