Class OpcUaConnector.NodeCacheEntry
- java.lang.Object
-
- de.iip_ecosphere.platform.connectors.opcuav1.OpcUaConnector.NodeCacheEntry
-
- Enclosing class:
- OpcUaConnector<CO,CI>
private static class OpcUaConnector.NodeCacheEntry extends java.lang.ObjectRealizes a node cache entry with value lifetime.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.milo.opcua.sdk.client.nodes.UaNodenodeprivate java.lang.Objectvalueprivate longvalueLifetimeprivate longvalueTimestamp
-
Constructor Summary
Constructors Modifier Constructor Description privateNodeCacheEntry()Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.ObjectgetValue()Returns the value of this node considering the caching lifetime.private voidsetValue(java.lang.Object value)Sets the cached value.private voidsetValue(java.lang.Object value, int lifetime)Changes the value of a cached entry.
-
-
-
Method Detail
-
setValue
private void setValue(java.lang.Object value)
Sets the cached value.- Parameters:
value- the value to set
-
setValue
private void setValue(java.lang.Object value, int lifetime)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
private java.lang.Object getValue()
Returns the value of this node considering the caching lifetime.- Returns:
- the value of this node
-
-