Interface RouterFactory

All Known Implementing Classes:
CacheableRouterFactory

@SPI public interface RouterFactory
RouterFactory. (SPI, Singleton, ThreadSafe)

Routing

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getRouter(org.apache.dubbo.common.URL url)
    Create router.
  • Method Details

    • getRouter

      @Adaptive("protocol") Router getRouter(org.apache.dubbo.common.URL url)
      Create router. Since 2.7.0, most of the time, we will not use @Adaptive feature, so it's kept only for compatibility.
      Parameters:
      url - url
      Returns:
      router instance