     @messagesOut = @messagesOut + 1
 
   failedLock: (msg) ->
-    @lockedFailedMessages = @lockedFailedMessages + 1
+    @lockFailedMessages = @lockFailedMessages + 1
 
 class BatchMessageService
   constructor: ->


Rx = require 'rx'
Q = require 'q'
{_} = require('underscore')
express = require 'express'

messageProcessors = [((m)-> Q(m)), ((m)-> Q(m)), ((m)-> Q(m))]

    @locallyLocked = 0
    @lockedMessages = 0
    @newMessages = 0
    @lockFailedMessages = 0
    @panicMode = false

  get: ->
    started: @started
