java.lang.Object
org.eclipse.milo.opcua.sdk.client.NodeCache

public class NodeCache extends Object
  • Constructor Details

    • NodeCache

      public NodeCache()
    • NodeCache

      public NodeCache(Consumer<com.google.common.cache.CacheBuilder<Object,Object>> consumer)
  • Method Details

    • canonicalize

      public UaNode canonicalize(UaNode node)
      Canonicalize node in the NodeCache and return it.

      If a canonical UaNode by the same NodeId already exists that instance is returned.

      Parameters:
      node - the UaNode to canonicalize.
      Returns:
      the canonical node instance.
    • getIfPresent

      public @Nullable UaNode getIfPresent(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
    • put

      public void put(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, UaNode node)
    • invalidate

      public void invalidate(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)