定制适配器问题 [英] Custom adapter problems

查看:112
本文介绍了定制适配器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道这是否是发布的正确位置,但这里是

Don't know if this is the correct place to post, but here goes

我有一个基于SDK基础的自定义适配器适配器示例(AsyncTransmitter)。当我逐个提交邮件时,实现工作正常。然而,当同时处理多个消息时,我随机地遇到了很多问题,主要是"消息传递引擎没有将消息传递给适配器的记录。如果适配器对同一消息多次调用DeleteMessage(),或者如果消息引发消息从未通过消息传递引擎传递给适配器,则会发生这种情况。我不是在我的实现中调用deletemessage,它只是在示例中。这是我将批量大小设置为0时得到的结果。批量大小> 0,我收到调用BatchComplete事件的错误。

I have a custom adapter that is built on the SDK base adapter sample (AsyncTransmitter). The implementation works fine when I submit messages one by one. However when dealing with multiple messages simultaneously, I get a lot of problems randomly, mainly "Messaging engine has no record of delivering the message to the adapter. This could happen if DeleteMessage() is called multiple times for the same message by the adapter or if it is called for a message which was never delivered to the adapter by the messaging engine". I'm not calling deletemessage in my implementation, it's only in the sample. This is what I get when I set the batch size to 0. With batch size > 0, I get errors calling BatchComplete event.

这些错误完全随机发生,我一直无法追踪他们。有时我可以毫无问题地同时传递数十条消息,我已经连续运行了数百封而没有任何错误。有时我甚至不会同时运行两条消息而不会出错。

These errors happen completely randomly and I've been unable to trace them. At times I can pass dozens of messages simultaneously without problems, I've ran hundreds in a row without any errors i. Sometimes I can't run even two simultaneous messages without getting errors.

任何帮助都将不胜感激。

Any help would be appreciated.

推荐答案

这听起来像是一个线程问题。您是否在适配器中使用线程同步技术?

谢谢,
This sounds like a threading issue. Are you using thread synchronization techniques in your adapter?

Thanks,


这篇关于定制适配器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆