nl_tokens: / * The constructor has no required parameters . Optional parameters :
pl_tokens: function Graceful ( options ) { /*jshint maxcomplexity: 9 */ options = options || { } ; this . shuttingDown = false ; this . _checks = [ ] ; this . _sending = false ; this . pollInterval = options . pollInterval || 250 ; localUtil . verifyType ( 'number' , this , 'pollInterval' ) ; this . timeout = options . timeout || 5 * 1000 ; localUtil . verifyType ( 'number' , this , 'timeout' ) ; this . messenger = options . messenger || require ( 'thehelp-last-ditch' ) ; localUtil . verifyType ( 'function' , this , 'messenger' ) ; this . log = options . log || logShim ( 'thehelp-cluster:graceful' ) ; localUtil . verifyLog ( this . log ) ; var _this = this ; this . addCheck ( function areWeSending ( ) { return _this . _sending === false ; } ) ; this . _process = options . _process || <mask> ; this . _cluster = options . _cluster || cluster ; this . _logPrefix = localUtil . getLogPrefix ( ) ; this . _setupListeners ( ) ; if ( Graceful . instance ) { this . log . warn ( 'More than one Graceful instance created in this process. ' + 'There are now duplicate process-level wireups!' ) ; } Graceful . instance = this ; }