Herron,
Thanks for your help! Sorry for the late reply, because of a vacation.
I understand your method: Adjust the publishing interval to match consume speed.
------------------------------------------------------------------
发件人:Kevin Herron <kevinherron@xxxxxxxxx>
发送时间:2017年10月1日(星期日) 06:12
收件人:george.ray <george.ray@xxxxxxxxxx>
抄 送:milo-dev <milo-dev@xxxxxxxxxxx>
主 题:Re: Reply: How to cache message in milo client?
George,
I think I misunderstood your original question.
The behavior you're seeing is because notifications received by the client are delivered to your callbacks on queue, in order, as they are received. If you're unable to consume the messages fast enough that queue will start to fill. You can see the mechanics of this in OpcUaSubscriptionManager:deliverNotificationMessage().
You should be able to use the parameters for subscriptions and monitored items I mentioned in my first message to ensure the server does not poll its underlying datasources and delivers notifications faster than you can consume it.