public static interface ManagedSubscription.ChangeListener
ManagedDataItems and
ManagedEventItems belonging to a ManagedSubscription.| Modifier and Type | Method and Description |
|---|---|
default void |
onDataReceived(List<ManagedDataItem> dataItems,
List<org.eclipse.milo.opcua.stack.core.types.builtin.DataValue> dataValues)
New values for
dataItems have arrived. |
default void |
onEventReceived(List<ManagedEventItem> eventItems,
List<org.eclipse.milo.opcua.stack.core.types.builtin.Variant[]> eventFields)
New events for
eventItems have arrived. |
default void |
onKeepAliveReceived()
The keep alive interval for the subscription has expired without any value changes and an empty
"keep alive" DataChangeNotification has arrived.
|
default void onDataReceived(List<ManagedDataItem> dataItems, List<org.eclipse.milo.opcua.stack.core.types.builtin.DataValue> dataValues)
dataItems have arrived.
Take care not to block unnecessarily in this callback because subscription notifications are processed synchronously as a backpressure mechanism. Blocking inside this callback will prevent subsequent notifications from being processed and new PublishRequests from being sent.
dataItems - the list of ManagedDataItems for which new values have arrived.dataValues - the corresponding DataValue for each ManagedDataItem in dataItems.default void onEventReceived(List<ManagedEventItem> eventItems, List<org.eclipse.milo.opcua.stack.core.types.builtin.Variant[]> eventFields)
eventItems have arrived.
Take care not to block unnecessarily in this callback because subscription notifications are processed synchronously as a backpressure mechanism. Blocking inside this callback will prevent subsequent notifications from being processed and new PublishRequests from being sent.
eventItems - the list of ManagedEventItem for which new events have arrived.eventFields - the corresponding event field values for each ManagedEventItem in
eventItems.default void onKeepAliveReceived()
Copyright © 2021. All rights reserved.