public void register ( Pageable pageable ) { System . out . println ( pagedSystemObjectNames ) ; if ( ! pagedSystemObjectNames . contains ( pageable . toString ( ) ) ) { if ( pageable . getPageIntervalInMinutes ( ) <= 0 ) { System . out . println ( new LogEntry ( Level . VERBOSE , "scheduler will not page " + StringSupport . trim ( pageable . toString ( ) + "'" , 80 , "..." ) + ": interval in minutes (" + pageable . getPageIntervalInMinutes ( ) + ") is not valid" ) ) ; } else { System . out . println ( new LogEntry ( Level . VERBOSE , "scheduler will page " + StringSupport . trim ( pageable . toString ( ) + "'" , 80 , "..." ) + " every " + pageable . getPageIntervalInMinutes ( ) + " minute(s)" ) ) ; } synchronized ( pagedSystems ) { pagedSystems . add ( pageable ) ; pagedSystemObjectNames . add ( pageable . toString ( ) ) ; } } else { System . out . println ( new LogEntry ( "pageable " + pageable + " already registered in scheduler" ) ) ; } }
Registers pageables . If the pageable has specified a page interval > 0 it will be paged regularly .