public void restart ( ) { // Clear the sweep thread kill flag. sweepThreadKillFlag = false ; // Start the sweep thread running with low priority. cacheSweepThread = new Thread ( ) { public void run ( ) { sweep ( ) ; } } ; cacheSweepThread . setPriority ( Thread . MIN_PRIORITY ) ; cacheSweepThread . start ( ) ; }
Restarts the sweep alogirithm . Useful after a kill has stopped it .