/// <summary>
        /// 把消息编码并投递到处理队列(异步生产,同步消费)
        /// </summary>
        private ErrorCode EncodeAndSendToLogicThread(IMessage msg, int msgID)
        {
            GBuffer   buffer    = this._dbCallbackQueuePool.Pop();
            ErrorCode errorCode = DBActiveWrapper.EncodeProtoMsgToBuffer(msg, msgID, buffer);

            if (errorCode != ErrorCode.Success)
            {
                this._dbCallbackQueuePool.Push(buffer);
                return(ErrorCode.EncodeMsgToBufferFailed);
            }
            this._dbCallbackQueue.Push(buffer);
            return(ErrorCode.Success);
        }