public interface SubscriptionServices
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.CreateSubscriptionResponse> |
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)
This service is used to create a subscription.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteSubscriptionsResponse> |
deleteSubscriptions(List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds)
This service is invoked to delete one or more subscriptions that belong to the client's session.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.ModifySubscriptionResponse> |
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)
This service is used to modify a subscription.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.PublishResponse> |
publish(List<org.eclipse.milo.opcua.stack.core.types.structured.SubscriptionAcknowledgement> subscriptionAcknowledgements)
This service is used for two purposes.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.RepublishResponse> |
republish(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger retransmitSequenceNumber)
This service requests the subscription to republish a notification message from its retransmission queue.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.SetPublishingModeResponse> |
setPublishingMode(boolean publishingEnabled,
List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds)
This service is used to enable sending of notifications on one or more subscriptions.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.TransferSubscriptionsResponse> |
transferSubscriptions(List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds,
boolean sendInitialValues)
This service is used to transfer a subscription and its monitored items from one session to another.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.CreateSubscriptionResponse> 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)
requestedPublishingInterval - this interval defines the cyclic rate that the subscription is being requested
to return notifications to the client. This interval is expressed in
milliseconds.requestedLifetimeCount - the requested lifetime count. The lifetime count shall be a minimum of three
times the keep keep-alive count.requestedMaxKeepAliveCount - the requested maximum keep-alive count. When the publishing timer has expired
this number of times without requiring any notification to be sent, the
subscription sends a keep-alive message to the client.maxNotificationsPerPublish - the maximum number of notifications that the client wishes to receive in a
single publish response. A value of zero indicates that there is no limit.publishingEnabled - if true, publishing is enabled for this subscription.priority - indicates the relative priority of the subscription.CompletableFuture containing the CreateSubscriptionResponse.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.ModifySubscriptionResponse> 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)
subscriptionId - the server-assigned identifier for the subscription.requestedPublishingInterval - this interval defines the cyclic rate that the subscription is being requested
to return notifications to the client. This interval is expressed in
milliseconds.requestedLifetimeCount - the requested lifetime count. The lifetime count shall be a minimum of three
times the keep keep-alive count.requestedMaxKeepAliveCount - the requested maximum keep-alive count. When the publishing timer has expired
this number of times without requiring any notification to be sent, the
subscription sends a keep-alive message to the client.maxNotificationsPerPublish - the maximum number of notifications that the client wishes to receive in a
single publish response. A value of zero indicates that there is no limit.priority - indicates the relative priority of the subscription.CompletableFuture containing the ModifySubscriptionResponse.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteSubscriptionsResponse> deleteSubscriptions(List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds)
subscriptionIds - the server-assigned identifiers for the subscriptions.CompletableFuture containing the DeleteSubscriptionsResponse.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.TransferSubscriptionsResponse> transferSubscriptions(List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds, boolean sendInitialValues)
subscriptionIds - the server-assigned identifiers for the subscriptions to transfer.sendInitialValues - if true, the first Publish response after the TransferSubscriptions service
call shall contain the current values of all monitored items in the
subscription where the MonitoringMode is MonitoringMode.Reporting.CompletableFuture containing the TransferSubscriptionsResponse.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.SetPublishingModeResponse> setPublishingMode(boolean publishingEnabled, List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds)
publishingEnabled - true if publishing of notification messages is to be enabled.subscriptionIds - a list of server-assigned subscription identifiers to enable or disable publishing on.CompletableFuture containing the SetPublishingModeResponse.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.PublishResponse> publish(List<org.eclipse.milo.opcua.stack.core.types.structured.SubscriptionAcknowledgement> subscriptionAcknowledgements)
subscriptionAcknowledgements - the list of acknowledgements for one or more subscriptions. This list may
contain multiple acknowledgements for the same subscription (multiple entries
with the same subscriptionId).CompletableFuture containing the PublishResponse.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.RepublishResponse> republish(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger retransmitSequenceNumber)
subscriptionId - the server-assigned identifier for the subscription to be republished.retransmitSequenceNumber - the sequence number of a specific notification message to be republished.CompletableFuture containing the RepublishResponse.Copyright © 2021. All rights reserved.