Interface OpcUaMonitoredItem.DataValueListener

Enclosing class:
OpcUaMonitoredItem

public static interface OpcUaMonitoredItem.DataValueListener
A callback that receives notification of new values for an OpcUaMonitoredItem.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDataReceived(OpcUaMonitoredItem item, org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
    A new DataValue for item has arrived.
  • Method Details

    • onDataReceived

      void onDataReceived(OpcUaMonitoredItem item, org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
      A new DataValue for item has 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.

      Parameters:
      item - the OpcUaMonitoredItem for which a new value has arrived.
      value - the new DataValue.