thenSubnetwork
fun <ItemT, InputChannelT : ChannelType<InputChannelT>, OutputChannelT : ChannelType<OutputChannelT>> NodeBuilder<ItemT, InputChannelT>.thenSubnetwork(networkName: String = "Bounded Subnetwork", capacity: Int, inner: (NodeBuilder<ItemT, InputChannelT>) -> NodeBuilder<ItemT, OutputChannelT>): RegularNodeBuilder<BoundedSubnetwork<ItemT, InputChannelT, OutputChannelT>, ItemT, OutputChannelT>
Attaches a bounded subnetwork defined in inner to the current NodeBuilder chain. The output of the subnetwork can then be connected to downstream nodes using the DSL system as well.
Parameters
networkName
Name of the bounded subnetwork
capacity
Maximum capacity of the subnetwork. The full-occupancy behaviour is identical to com.group7.nodes.BoundedQueueNode
inner
Lambda function with the subnetwork's content defined within. Read more here.