Interface Router.RouterBuilder<B extends Router.RouterBuilder<B>>

Type Parameters:
B - type of the builder
All Known Subinterfaces:
Router.Builder
Enclosing interface:
Router

public static interface Router.RouterBuilder<B extends Router.RouterBuilder<B>>
Generic builder interface used by Router.Builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    Add a new routing to this router.
    default B
    addRouting(Supplier<? extends Routing> routing)
    Add a new routing to this router.
  • Method Details

    • addRouting

      B addRouting(Routing routing)
      Add a new routing to this router.
      Parameters:
      routing - routing to add
      Returns:
      updated builder
    • addRouting

      default B addRouting(Supplier<? extends Routing> routing)
      Add a new routing to this router.
      Parameters:
      routing - routing to add
      Returns:
      updated builder