Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] Milo Client-OpcUaSubscription class

No, this semaphore is used internally to ensure that notification delivery and item creation are mutually exclusive in order to ensure that the item creation callback runs at a time that notifications aren't being processed.

A semaphore with only 1 permit can also be thought of as a Mutex.

On Sun, Dec 10, 2017 at 6:58 AM, Isuru Samaraweera <isuru@xxxxxxxx> wrote:
Hi All,
There is a semaphore defined as below in the OpcUaSubscription class.
 private final AsyncSemaphore notificationSemaphore = new AsyncSemaphore(1);

Shouldn't the number of permits depend on the OPC servers capacity to process ?
Should't it be configurable per client/server environment pair?

Thanks,
Isuru

_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/milo-dev



Back to the top