public static interface UaSubscriptionManager.SubscriptionListener
| Modifier and Type | Method and Description |
|---|---|
default void |
onKeepAlive(UaSubscription subscription,
org.eclipse.milo.opcua.stack.core.types.builtin.DateTime publishTime)
A keep-alive message was received.
|
default void |
onNotificationDataLost(UaSubscription subscription)
Attempts to recover missed notification data have failed.
|
default void |
onPublishFailure(org.eclipse.milo.opcua.stack.core.UaException exception)
A publish failure has occurred.
|
default void |
onStatusChanged(UaSubscription subscription,
org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode status)
A status change notification was received.
|
default void |
onSubscriptionTransferFailed(UaSubscription subscription,
org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode statusCode)
A new
UaSession was established, and upon attempting to transfer an existing subscription to this
new session, a failure occurred. |
default void onKeepAlive(UaSubscription subscription, org.eclipse.milo.opcua.stack.core.types.builtin.DateTime publishTime)
subscription - the UaSubscription that received the keep-alive.publishTime - the time the server published the keep-alive.default void onStatusChanged(UaSubscription subscription, org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode status)
subscription - the UaSubscription that received the status change.status - the new subscription status.default void onPublishFailure(org.eclipse.milo.opcua.stack.core.UaException exception)
No additional action is required.
exception - the cause of the failure.default void onNotificationDataLost(UaSubscription subscription)
When a notification is missed a series of Republish requests are initiated to recover the missing data. If republishing fails, or any of the notifications are no longer available, this callback will be invoked.
subscription - the subscription that missed notification data.default void onSubscriptionTransferFailed(UaSubscription subscription, org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode statusCode)
UaSession was established, and upon attempting to transfer an existing subscription to this
new session, a failure occurred.
This subscription will be removed from UaSubscriptionManager's bookkeeping. It must be re-created.
subscription - the UaSubscription that could not be transferred.statusCode - the StatusCode for the transfer failure.Copyright © 2021. All rights reserved.