Interface OpcUaMonitoredItem.EventValueListener

Enclosing class:
OpcUaMonitoredItem

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

    Modifier and Type
    Method
    Description
    void
    onEventReceived(OpcUaMonitoredItem item, org.eclipse.milo.opcua.stack.core.types.builtin.Variant[] eventValues)
    A new event for item has arrived.
  • Method Details

    • onEventReceived

      void onEventReceived(OpcUaMonitoredItem item, org.eclipse.milo.opcua.stack.core.types.builtin.Variant[] eventValues)
      A new event 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 event has arrived.
      eventValues - the new event field values.