public class BatchSetMonitoringMode extends Object
MonitoringMode modifications to one or more MonitoredItems.
Handles splitting the execution into multiple service calls as needed based on the requested modifications and the operation limits reported by the server.
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchSetMonitoringMode.SetMonitoringModeResult
Holds the operation- and service-level results of an operation that is part of a
BatchSetMonitoringMode execution. |
| Constructor and Description |
|---|
BatchSetMonitoringMode(ManagedSubscription subscription) |
BatchSetMonitoringMode(OpcUaClient client,
OpcUaSubscription subscription) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<BatchSetMonitoringMode.SetMonitoringModeResult> |
add(OpcUaMonitoredItem monitoredItem,
org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode)
Add an
OpcUaMonitoredItem to set a new MonitoringMode on as part of a batch. |
List<BatchSetMonitoringMode.SetMonitoringModeResult> |
execute()
Execute this batch operation and return a List of
BatchSetMonitoringMode.SetMonitoringModeResults the same size and order as
calls to add(OpcUaMonitoredItem, MonitoringMode) were made. |
CompletableFuture<List<BatchSetMonitoringMode.SetMonitoringModeResult>> |
executeAsync()
Execute this batch operation and return a
CompletableFuture with a List of
BatchSetMonitoringMode.SetMonitoringModeResults the same size and order as calls to
add(OpcUaMonitoredItem, MonitoringMode) were made. |
int |
getServiceInvocationCount()
Get the number of service invocations that were needed to execute this batch.
|
public BatchSetMonitoringMode(ManagedSubscription subscription)
public BatchSetMonitoringMode(OpcUaClient client, OpcUaSubscription subscription)
public int getServiceInvocationCount()
public CompletableFuture<BatchSetMonitoringMode.SetMonitoringModeResult> add(OpcUaMonitoredItem monitoredItem, org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode)
OpcUaMonitoredItem to set a new MonitoringMode on as part of a batch.monitoredItem - the OpcUaMonitoredItem to modify.monitoringMode - the new MonitoringMode.CompletableFuture that always completes successfully with a BatchSetMonitoringMode.SetMonitoringModeResult.public List<BatchSetMonitoringMode.SetMonitoringModeResult> execute() throws InterruptedException
BatchSetMonitoringMode.SetMonitoringModeResults the same size and order as
calls to add(OpcUaMonitoredItem, MonitoringMode) were made.BatchSetMonitoringMode.SetMonitoringModeResults the same size and order as calls to
add(OpcUaMonitoredItem, MonitoringMode) were made.InterruptedExceptionpublic CompletableFuture<List<BatchSetMonitoringMode.SetMonitoringModeResult>> executeAsync()
CompletableFuture with a List of
BatchSetMonitoringMode.SetMonitoringModeResults the same size and order as calls to
add(OpcUaMonitoredItem, MonitoringMode) were made.
The returned CompletableFuture always completes successfully.
CompletableFuture with a List of BatchSetMonitoringMode.SetMonitoringModeResults the same size and order as
calls to add(OpcUaMonitoredItem, MonitoringMode) were made.Copyright © 2021. All rights reserved.