Class RouterBuilder


  • public class RouterBuilder
    extends Object
    The type RouterImpl builder.
    • Constructor Detail

      • RouterBuilder

        public RouterBuilder​(String name)
      • RouterBuilder

        public RouterBuilder​(TopologyBuilder topologyBuilder)
        Instantiates a new RouterImpl builder.
        Parameters:
        topologyBuilder - the topology builder
    • Method Detail

      • withName

        public RouterBuilder withName​(String name)
        Adds name to router.
        Parameters:
        name - the name
        Returns:
        the router builder
      • createRouter

        public RouterBuilder createRouter()
        Create new router object and add it into topology routers.
        Returns:
        the router builder
      • addRouters

        public TopologyBuilder addRouters()
        Returns TopologyBuilder with created routers.
        Returns:
        the topology builder
      • build

        public Router build()