protected void rotate ( ) { for ( RotatingMap map : spoutTasksToRotatingMap . values ( ) ) { map . rotate ( ) ; } Runnable r = new Runnable ( ) { @ Override public void run ( ) { rotate ( ) ; } } ; looper . registerTimerEvent ( rotateInterval , r ) ; }
Protected method for unit test