Class OpcUaConnector.NodeCacheEntry
java.lang.Object
de.iip_ecosphere.platform.connectors.opcuav1.OpcUaConnector.NodeCacheEntry
- Enclosing class:
OpcUaConnector<CO,CI>
Realizes a node cache entry with value lifetime.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.milo.opcua.sdk.client.nodes.UaNodeprivate Objectprivate longprivate long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates a cache entry for a pseudo node, e.g., a built-in property.privateNodeCacheEntry(org.eclipse.milo.opcua.sdk.client.nodes.UaNode node) Creates a cache entry for a givennode. -
Method Summary
-
Field Details
-
node
private org.eclipse.milo.opcua.sdk.client.nodes.UaNode node -
valueLifetime
private long valueLifetime -
valueTimestamp
private long valueTimestamp -
value
-
-
Constructor Details
-
NodeCacheEntry
private NodeCacheEntry()Creates a cache entry for a pseudo node, e.g., a built-in property. -
NodeCacheEntry
private NodeCacheEntry(org.eclipse.milo.opcua.sdk.client.nodes.UaNode node) Creates a cache entry for a givennode.- Parameters:
node- the node
-
-
Method Details
-
setValue
Sets the cached value.- Parameters:
value- the value to set
-
setValue
Changes the value of a cached entry.- Parameters:
value- the value to setlifetime- the lifetime (negative unlimited, 0 request all time, positive caching time in ms)
-
getValue
Returns the value of this node considering the caching lifetime.- Returns:
- the value of this node
-