nl_tokens: construct a new queue that is backed by mongodb .
pl_tokens: function MongodbQueue ( name , metrics , lock , opts ) { if ( ! name ) { throw <mask> Error ( 'name is required to create a mongodb queue' ) ; } if ( ! opts || ! opts . mongodb ) { throw new Error ( 'mongodb is not specified to create mongodb queue' ) ; } this . queueName = name ; this . metrics = metrics ; this . lock = lock ; this . lockName = opts . lockName || ( 'lock:sync:' + this . queueName ) ; this . lockTimeout = opts . lockTimeout || 10000 ; this . mongodb = opts . mongodb ; this . queueOptions = { visibility : opts . visibility || 30 , ttl : opts . queueMessagesTTL || 24 * 60 * 60 } ; this . queue ; }