Interface Router

public interface Router
Router for server. Router contains routings of various types, so the server can handle each protocol as fast as possible.
  • Method Details

    • builder

      static Router.Builder builder()
      Builder for router.
      a new builder
    • empty

      static Router empty()
      Empty router.
      new empty router
    • routing

      <T extends Routing> T routing(Class<T> routingType, T defaultValue)
      Get routing of a specific type.
      Type Parameters:
      T - type of routing
      routingType - type of the routing
      defaultValue - default value to use if the routing is not defined in this router
      routing defined or default value if not found
    • afterStop

      void afterStop()
      This is called after server closes ports.
    • beforeStart

      void beforeStart()
      This is called before server opens ports.