public void onMsg(MamdaSubscription subscription,
                          MamaMsg msg,
                          mamaMsgType msgType)
        {
            if (!MamdaOrderBookFields.isSet())
            {
                return;
            }

            try
            {
                switch (msgType)
                {
                case mamaMsgType.MAMA_MSG_TYPE_BOOK_CLEAR:
                    handleClear(subscription, msg);
                    break;

                case mamaMsgType.MAMA_MSG_TYPE_BOOK_INITIAL:
                case mamaMsgType.MAMA_MSG_TYPE_BOOK_RECAP:
                case mamaMsgType.MAMA_MSG_TYPE_BOOK_SNAPSHOT:
                    handleRecap(subscription, msg);
                    break;

                case mamaMsgType.MAMA_MSG_TYPE_BOOK_UPDATE:
                    handleUpdate(subscription, msg);
                    break;
                }
            }
            catch (MamaException)
            {
            }
        }
        /// <summary>
        /// </summary>
        /// <param name="subscription"></param>
        /// <param name="msg"></param>
        /// <param name="msgType"></param>
        public void onMsg(
            MamdaSubscription subscription,
            MamaMsg msg,
            mamaMsgType msgType)
        {
            if (!MamdaOrderBookFields.isSet())
            {
                return;
            }

            // If msg is a order book related message, invoke the
            // appropriate callback:
            switch (msgType)
            {
            case mamaMsgType.MAMA_MSG_TYPE_BOOK_CLEAR:
                handleClear(subscription, msg);
                break;

            case mamaMsgType.MAMA_MSG_TYPE_BOOK_INITIAL:
            case mamaMsgType.MAMA_MSG_TYPE_BOOK_RECAP:
            case mamaMsgType.MAMA_MSG_TYPE_BOOK_SNAPSHOT:
                handleRecap(subscription, msg);
                break;

            case mamaMsgType.MAMA_MSG_TYPE_BOOK_UPDATE:
                handleUpdate(subscription, msg);
                break;
            }
        }