Class CacheableRouterFactory

java.lang.Object
org.apache.dubbo.rpc.cluster.CacheableRouterFactory
All Implemented Interfaces:
RouterFactory

public abstract class CacheableRouterFactory extends Object implements RouterFactory
If you want to provide a router implementation based on design of v2.7.0, please extend from this abstract class. For 2.6.x style router, please implement and use RouterFactory directly.
  • Constructor Details

    • CacheableRouterFactory

      public CacheableRouterFactory()
  • Method Details

    • getRouter

      public Router getRouter(org.apache.dubbo.common.URL url)
      Description copied from interface: RouterFactory
      Create router. Since 2.7.0, most of the time, we will not use @Adaptive feature, so it's kept only for compatibility.
      Specified by:
      getRouter in interface RouterFactory
      Parameters:
      url - url
      Returns:
      router instance