@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class Node extends Object
NodeBuilderBaseImpl and implement the Builder interface.
The public interface of Node objects is immutable. This way we can ensure at compile time that there are no
cycles in the graph: once a node is built, it cannot get new parents. On the other hand, Node objects still
keep track of their children, which are necessarily added after the parent node is built, so these objects are not
really immutable and should not be used in a multithreaded environment without external synchronization.| Modifier and Type | Class and Description |
|---|---|
static class |
Node.NodeWithCondition |
| Modifier and Type | Method and Description |
|---|---|
List<Node> |
getAllChildren()
Returns an unmodifiable view of list of all the children of this
Node. |
List<Node> |
getAllParents()
Returns a list of all the parents of this node, including unconditional and conditional parents.
|
List<Node.NodeWithCondition> |
getChildrenWithConditions()
Returns an unmodifiable view of list of the children with condition (including the default) of this
Node. |
List<Node> |
getChildrenWithoutConditions()
Returns an unmodifiable view of list of the children without condition of this
Node. |
List<Credential> |
getCredentials()
Get the
Credential associated with this Node. |
Node |
getDefaultConditionalChild()
Returns the default conditional child of this
Node. |
ErrorHandler |
getErrorHandler()
Returns the error handler of this node.
|
String |
getName()
Returns the name of the node.
|
List<Node.NodeWithCondition> |
getParentsWithConditions()
Returns a list of the conditional parents of this node together with their conditions.
|
List<Node> |
getParentsWithoutConditions()
Returns a list of the unconditional parents of this node.
|
Integer |
getRetryInterval()
Get the
retry-interval attribute of this Node. |
Integer |
getRetryMax()
Get the
retry-max attribute of this Node. |
String |
getRetryPolicy()
Get the
retry-policy attribute of this Node. |
public String getName()
public List<Credential> getCredentials()
Credential associated with this Node.Credential associated with this Nodepublic Integer getRetryMax()
retry-max attribute of this Node.retry-maxpublic Integer getRetryInterval()
retry-interval attribute of this Node.retry-intervalpublic String getRetryPolicy()
retry-policy attribute of this Node.retry-policypublic List<Node> getAllParents()
public List<Node> getParentsWithoutConditions()
public List<Node.NodeWithCondition> getParentsWithConditions()
public ErrorHandler getErrorHandler()
public List<Node> getAllChildren()
Node.Node.public List<Node> getChildrenWithoutConditions()
Node.Node.public List<Node.NodeWithCondition> getChildrenWithConditions()
Node.Node.Copyright © 2021 Apache Software Foundation. All rights reserved.