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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -