public class NodeCache extends Object
| Constructor and Description |
|---|
NodeCache() |
NodeCache(Consumer<com.google.common.cache.CacheBuilder<Object,Object>> consumer) |
| Modifier and Type | Method and Description |
|---|---|
UaNode |
canonicalize(UaNode node)
Canonicalize
node in the NodeCache and return it. |
@Nullable UaNode |
getIfPresent(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) |
void |
invalidate(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) |
void |
put(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
UaNode node) |
public UaNode canonicalize(UaNode node)
node in the NodeCache and return it.
If a canonical UaNode by the same NodeId already exists that instance is
returned.
node - the UaNode to canonicalize.@Nullable public @Nullable UaNode getIfPresent(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
public void put(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
UaNode node)
public void invalidate(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Copyright © 2021. All rights reserved.