Best way to write refresher thread

aAeroxyloody25

New Member
Hello I have some configurations those are to be refreshed after configurable time span. What is the best way of doing this or following will suffice ?\[code\]@Override public void run() { try { while(true){ if (isRefreshNeeded) { refresh() } } } catch( Exception excep ) { // Log and report exception } }\[/code\]
 
Back
Top