Interface DataTypeTreeFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory that creates a
DataTypeTree for a given OpcUaClient.
Implementations can create different types of DataTypeTrees, such as:
- An eagerly built tree via
DataTypeTreeBuilder.build(OpcUaClient) - A lazily-loaded tree via
LazyClientDataTypeTree
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.milo.opcua.sdk.core.typetree.DataTypeTreecreate(OpcUaClient client) Creates aDataTypeTreefor the given client.static DataTypeTreeFactoryeager()Returns the default factory that eagerly builds aDataTypeTreeusingDataTypeTreeBuilder.build(OpcUaClient).static DataTypeTreeFactorylazy()Returns a factory that creates aLazyClientDataTypeTree.
-
Method Details
-
create
org.eclipse.milo.opcua.sdk.core.typetree.DataTypeTree create(OpcUaClient client) throws org.eclipse.milo.opcua.stack.core.UaException Creates aDataTypeTreefor the given client.- Parameters:
client- theOpcUaClientto create a DataTypeTree for.- Returns:
- a new
DataTypeTreeinstance. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if an error occurs while creating the tree.
-
eager
Returns the default factory that eagerly builds aDataTypeTreeusingDataTypeTreeBuilder.build(OpcUaClient).- Returns:
- the default
DataTypeTreeFactory.
-
lazy
Returns a factory that creates aLazyClientDataTypeTree.- Returns:
- a
DataTypeTreeFactorythat creates lazy-loading trees.
-