public void loopProcess ( ) { for ( Session session : sessions . values ( ) ) { long timeMillis = System . currentTimeMillis ( ) ; try { session . callbackOnLoop ( timeMillis ) ; } catch ( Exception e ) { Logger . error ( "Exception occurs while callbackOnLoop on {}" , session , e ) ; } } }
to be called on each loop to process idle routines .