Class AppScriptStateRouter<T>

java.lang.Object
org.apache.dubbo.rpc.cluster.router.state.AbstractStateRouter<T>
org.apache.dubbo.rpc.cluster.router.script.config.AppScriptStateRouter<T>
All Implemented Interfaces:
EventListener, org.apache.dubbo.common.config.configcenter.ConfigurationListener, StateRouter<T>

public class AppScriptStateRouter<T> extends AbstractStateRouter<T> implements org.apache.dubbo.common.config.configcenter.ConfigurationListener
  • Constructor Details

    • AppScriptStateRouter

      public AppScriptStateRouter(org.apache.dubbo.common.URL url)
  • Method Details

    • process

      public void process(org.apache.dubbo.common.config.configcenter.ConfigChangedEvent event)
      Specified by:
      process in interface org.apache.dubbo.common.config.configcenter.ConfigurationListener
    • notify

      public void notify(BitList<Invoker<T>> invokers)
      Description copied from interface: StateRouter
      Notify the router the invoker list. Invoker list may change from time to time. This method gives the router a chance to prepare before StateRouter.route(BitList, URL, Invocation, boolean, Holder) gets called. No need to notify next node.
      Specified by:
      notify in interface StateRouter<T>
      Overrides:
      notify in class AbstractStateRouter<T>
      Parameters:
      invokers - invoker list
    • stop

      public void stop()
      Specified by:
      stop in interface StateRouter<T>
    • setScriptRule

      public void setScriptRule(ScriptRule scriptRule)