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