Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[milo-dev] Subscription execution interval

Eclipse milo team members

Hello, I am doing the work of investigating and verifying the software.
I had the opportunity to use Eclipse milo and found it to be great software.
Your work is wonderful.

Well, I have a question.
I tried the prepared example of this project,
I encountered that SubscriptionExample execution delayed.
It seems to be related to the Subscription class.

1.startPublilshingTimer
        subscriptionManager.getServer (). getScheduledExecutorService (). schedule (
            this :: onPublishingTimer,
            interval,
            TimeUnit.MILLISECONDS
        );

2.onPublishingTimer
        timerHandler.whenNormal ();

3.whenNormal, whenLate, whenKeepAlive
        startPublishingTimer ();

Assuming that the interval is 1000 ms and the execution time of onPublishingTimer and whenNormal is 1 ms,
One publish becomes 1001 ms.

Trial, when I described the startPublishingTimer as follows, the delay ceased.

        subscriptionManager.getServer (). getScheduledExecutorService (). scheduleAtFixedRate (
                this :: onPublishingTimer,
                0,
                interval,
                TimeUnit.MILLISECONDS
        );

However, it is impossible to monitor the state of Publish.

Is this delay specification OPC-UA, or Eclipse milo?

I am sorry for my poor English.

thanks.

Back to the top