public interface UaMonitoredItem
| Modifier and Type | Interface and Description |
|---|---|
static interface |
UaMonitoredItem.EventConsumer |
static interface |
UaMonitoredItem.ValueConsumer |
| Modifier and Type | Method and Description |
|---|---|
OpcUaClient |
getClient()
Get the
OpcUaClient that created this monitored item. |
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger |
getClientHandle()
Get the client-assigned id.
|
boolean |
getDiscardOldest()
Get the discard policy.
|
org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject |
getFilterResult()
Get the filter result
ExtensionObject. |
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger |
getMonitoredItemId()
Get the server-assigned id.
|
org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject |
getMonitoringFilter()
Get the filter requested when the item was created.
|
org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode |
getMonitoringMode()
Get the
MonitoringMode. |
org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId |
getReadValueId()
Get the
ReadValueId. |
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger |
getRequestedQueueSize()
Get the last requested queue size.
|
double |
getRequestedSamplingInterval()
Get the last requested sampling interval.
|
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger |
getRevisedQueueSize()
Get the revised queue size.
|
double |
getRevisedSamplingInterval()
Get the revised sampling interval.
|
org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode |
getStatusCode()
Get the
StatusCode of the last operation. |
org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn |
getTimestamps()
Get the
TimestampsToReturn requested when the item was created. |
void |
setEventConsumer(Consumer<org.eclipse.milo.opcua.stack.core.types.builtin.Variant[]> eventConsumer)
Set the
Consumer that will receive events as they arrive from the server. |
void |
setEventConsumer(UaMonitoredItem.EventConsumer eventConsumer)
Set the
UaMonitoredItem.EventConsumer that will receive events as they arrive from the server. |
void |
setValueConsumer(Consumer<org.eclipse.milo.opcua.stack.core.types.builtin.DataValue> valueConsumer)
Set the
Consumer that will receive values as they arrive from the server. |
void |
setValueConsumer(UaMonitoredItem.ValueConsumer valueConsumer)
Set a
UaMonitoredItem.ValueConsumer that will receive values as they arrive from the server. |
OpcUaClient getClient()
OpcUaClient that created this monitored item.OpcUaClient that created this monitored item.org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getClientHandle()
This handle is used in the subscription to match incoming values to the corresponding monitored item.
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getMonitoredItemId()
org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId getReadValueId()
ReadValueId.ReadValueId.org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode getStatusCode()
StatusCode of the last operation.StatusCode of the last operation.double getRequestedSamplingInterval()
double getRevisedSamplingInterval()
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getRequestedQueueSize()
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getRevisedQueueSize()
org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject getFilterResult()
ExtensionObject.ExtensionObject.org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode getMonitoringMode()
MonitoringMode.MonitoringMode.org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject getMonitoringFilter()
May be null if no filter was requested.
boolean getDiscardOldest()
true if oldest are discarded when the queue capacity is exceeded.
org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn getTimestamps()
TimestampsToReturn requested when the item was created.TimestampsToReturn requested when the item was created.void setValueConsumer(Consumer<org.eclipse.milo.opcua.stack.core.types.builtin.DataValue> valueConsumer)
Consumer that will receive values as they arrive from the server.valueConsumer - the Consumer that will receive values as they arrive from the server.void setValueConsumer(UaMonitoredItem.ValueConsumer valueConsumer)
UaMonitoredItem.ValueConsumer that will receive values as they arrive from the server.
The UaMonitoredItem in the consumer will be this item.
valueConsumer - the UaMonitoredItem.ValueConsumer that will receive values as they arrive from the server.void setEventConsumer(Consumer<org.eclipse.milo.opcua.stack.core.types.builtin.Variant[]> eventConsumer)
Consumer that will receive events as they arrive from the server.eventConsumer - the Consumer that will receive events as they arrive from the server.void setEventConsumer(UaMonitoredItem.EventConsumer eventConsumer)
UaMonitoredItem.EventConsumer that will receive events as they arrive from the server.eventConsumer - the UaMonitoredItem.EventConsumer that will receive events as they arrive from the server.Copyright © 2021. All rights reserved.