public interface UaSubscriptionManager
| Modifier and Type | Interface and Description |
|---|---|
static interface |
UaSubscriptionManager.SubscriptionListener |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubscriptionListener(UaSubscriptionManager.SubscriptionListener listener)
|
CompletableFuture<UaSubscription> |
createSubscription(double requestedPublishingInterval)
Create a
UaSubscription using default parameters. |
CompletableFuture<UaSubscription> |
createSubscription(double requestedPublishingInterval,
BiFunction<Double,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getLifetimeCount,
Function<Double,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getMaxKeepAliveCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish,
boolean publishingEnabled,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
Create a
UaSubscription. |
CompletableFuture<UaSubscription> |
createSubscription(double requestedPublishingInterval,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedLifetimeCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedMaxKeepAliveCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish,
boolean publishingEnabled,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
Create a
UaSubscription. |
CompletableFuture<UaSubscription> |
deleteSubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId)
Delete a
UaSubscription. |
com.google.common.collect.ImmutableList<UaSubscription> |
getSubscriptions() |
CompletableFuture<UaSubscription> |
modifySubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
double requestedPublishingInterval)
Request a new publishing interval for a
UaSubscription. |
CompletableFuture<UaSubscription> |
modifySubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
double requestedPublishingInterval,
BiFunction<Double,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getLifetimeCount,
Function<Double,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getMaxKeepAliveCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
Modify a
UaSubscription. |
CompletableFuture<UaSubscription> |
modifySubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
double requestedPublishingInterval,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedLifetimeCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedMaxKeepAliveCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
Modify a
UaSubscription. |
void |
removeSubscriptionListener(UaSubscriptionManager.SubscriptionListener listener)
|
CompletableFuture<UaSubscription> createSubscription(double requestedPublishingInterval)
UaSubscription using default parameters.
The requested max keep-alive count and lifetime count will be derived from the requested publishing interval.
requestedPublishingInterval - the requested publishing interval of the subscription.CompletableFuture containing the UaSubscription.CompletableFuture<UaSubscription> createSubscription(double requestedPublishingInterval, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedLifetimeCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedMaxKeepAliveCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish, boolean publishingEnabled, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
UaSubscription.requestedPublishingInterval - the requested publishing interval.requestedLifetimeCount - the requested lifetime count.requestedMaxKeepAliveCount - the requested max keep-alive count.maxNotificationsPerPublish - the maximum number of notifications allowed in a publish response.publishingEnabled - true if publishing is enabled for the subscription.priority - the relative priority to assign to the subscription.CompletableFuture containing the UaSubscription.CompletableFuture<UaSubscription> createSubscription(double requestedPublishingInterval, BiFunction<Double,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getLifetimeCount, Function<Double,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getMaxKeepAliveCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish, boolean publishingEnabled, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
UaSubscription.
This overload uses provided functions to calculate keep-alive and lifetime counts. They may be called more than once, with revised values, in order to modify the subscription if the server revises the requested publishing interval.
requestedPublishingInterval - the requested publishing interval.getLifetimeCount - function returning lifetime count given publishing interval and
keep-alive count.getMaxKeepAliveCount - function returning max keep-alive count given publishing interval.maxNotificationsPerPublish - the maximum number of notifications allowed in a publish response.publishingEnabled - true if publishing is enabled for the subscription.priority - the relative priority to assign to the subscription.CompletableFuture containing the UaSubscription.CompletableFuture<UaSubscription> modifySubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, double requestedPublishingInterval)
UaSubscription.
The requested max keep-alive count and lifetime count will be derived from the requested publishing interval.
subscriptionId - the server-assigned id of the UaSubscription to modify.requestedPublishingInterval - the requested publishing interval.CompletableFuture containing the UaSubscription.CompletableFuture<UaSubscription> modifySubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, double requestedPublishingInterval, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedLifetimeCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedMaxKeepAliveCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
UaSubscription.subscriptionId - the server-assigned id of the UaSubscription to modify.requestedPublishingInterval - the requested publishing interval.requestedLifetimeCount - the requested lifetime count.requestedMaxKeepAliveCount - the requested max keep-alive count.maxNotificationsPerPublish - the maximum number of notifications allowed in a publish response.priority - the relative priority to assign to the subscription.CompletableFuture containing the UaSubscription.CompletableFuture<UaSubscription> modifySubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, double requestedPublishingInterval, BiFunction<Double,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getLifetimeCount, Function<Double,org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getMaxKeepAliveCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
UaSubscription.
This overload uses provided functions to calculate keep-alive and lifetime counts. They may be called more than once, with revised values, in order to modify the subscription if the server revises the requested publishing interval.
subscriptionId - the server-assigned id of the UaSubscription to modify.requestedPublishingInterval - the requested publishing interval.getLifetimeCount - function returning lifetime count given publishing interval and
keep-alive count.getMaxKeepAliveCount - function returning max keep-alive count given publishing interval.maxNotificationsPerPublish - the maximum number of notifications allowed in a publish response.priority - the relative priority to assign to the subscription.CompletableFuture containing the UaSubscription.CompletableFuture<UaSubscription> deleteSubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId)
UaSubscription.subscriptionId - the server-assigned id of the UaSubscription to delete.CompletableFuture containing the deleted UaSubscription.com.google.common.collect.ImmutableList<UaSubscription> getSubscriptions()
ImmutableList of UaSubscriptions managed by this UaSubscriptionManager.void addSubscriptionListener(UaSubscriptionManager.SubscriptionListener listener)
listener - the UaSubscriptionManager.SubscriptionListener to add.void removeSubscriptionListener(UaSubscriptionManager.SubscriptionListener listener)
listener - the UaSubscriptionManager.SubscriptionListener to remove.Copyright © 2021. All rights reserved.