private long processPauseRequest ( final AbstractBody req ) { assertLocked ( ) ; if ( cmParams != null && cmParams . getMaxPause ( ) != null ) { try { AttrPause pause = AttrPause . createFromString ( req . getAttribute ( Attributes . PAUSE ) ) ; if ( pause != null ) { long delay = pause . getInMilliseconds ( ) - PAUSE_MARGIN ; if ( delay < 0 ) { delay = EMPTY_REQUEST_DELAY ; } return delay ; } } catch ( BOSHException boshx ) { LOG . log ( Level . FINEST , "Could not extract" , boshx ) ; } } return getDefaultEmptyRequestDelay ( ) ; }
Process the request to determine if the empty request delay can be determined by looking to see if the request is a pause request . If it can the request s delay is returned otherwise the default delay is returned .