public class BatchModifyMonitoredItems extends Object
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 |
BatchModifyMonitoredItems.BatchModifyParametersBuilder |
static class |
BatchModifyMonitoredItems.ModifyMonitoredItemResult
Holds the operation- and service-level results of an operation that is part of a
BatchModifyMonitoredItems execution. |
| Constructor and Description |
|---|
BatchModifyMonitoredItems(ManagedSubscription subscription) |
BatchModifyMonitoredItems(OpcUaClient client,
OpcUaSubscription subscription) |
public BatchModifyMonitoredItems(ManagedSubscription subscription)
public BatchModifyMonitoredItems(OpcUaClient client, OpcUaSubscription subscription)
public int getServiceInvocationCount()
public CompletableFuture<BatchModifyMonitoredItems.ModifyMonitoredItemResult> add(OpcUaMonitoredItem monitoredItem, Consumer<BatchModifyMonitoredItems.BatchModifyParametersBuilder> builderConsumer)
OpcUaMonitoredItem to be modified as part of a batch.monitoredItem - the OpcUaMonitoredItem to modify.builderConsumer - a consumer that will set changes on a BatchModifyMonitoredItems.BatchModifyParametersBuilder.CompletableFuture that always completes successfully with a BatchModifyMonitoredItems.ModifyMonitoredItemResult.public List<BatchModifyMonitoredItems.ModifyMonitoredItemResult> execute() throws InterruptedException
BatchModifyMonitoredItems.ModifyMonitoredItemResults the same size and order as
calls to add(OpcUaMonitoredItem, Consumer) were made.BatchModifyMonitoredItems.ModifyMonitoredItemResults the same size and order as calls to
add(OpcUaMonitoredItem, Consumer) were made.InterruptedExceptionpublic CompletableFuture<List<BatchModifyMonitoredItems.ModifyMonitoredItemResult>> executeAsync()
CompletableFuture with a List of
BatchModifyMonitoredItems.ModifyMonitoredItemResults the same size and order as calls to
add(OpcUaMonitoredItem, Consumer) were made.
The returned CompletableFuture always completes successfully.
CompletableFuture with a List of BatchModifyMonitoredItems.ModifyMonitoredItemResults the same size and order as
calls to add(OpcUaMonitoredItem, Consumer) were made.Copyright © 2021. All rights reserved.