Channel information dispatcher, used to specify thread pool model.
org.apache.dubbo.remoting.Dispatcher
<dubbo:protocol dispatcher="xxx" />
<!-- Default value setting. When <dubbo:protocol> does not configure the dispatcher attribute, this configuration is used -->
<dubbo:provider dispatcher="xxx" />
org.apache.dubbo.remoting.transport.dispatcher.all.AllDispatcherorg.apache.dubbo.remoting.transport.dispatcher.direct.DirectDispatcherorg.apache.dubbo.remoting.transport.dispatcher.message.MessageOnlyDispatcherorg.apache.dubbo.remoting.transport.dispatcher.execution.ExecutionDispatcherorg.apache.dubbo.remoting.transport.dispatcher.connection.ConnectionOrderedDispatcherMaven project structure:
src
 |-main
    |-java
        |-com
            |-xxx
                |-XxxDispatcher.java (implements Dispatcher interface)
    |-resources
        |-META-INF
            |-dubbo
                |-org.apache.dubbo.remoting.Dispatcher (plain text file, content: xxx=com.xxx.XxxDispatcher)
XxxDispatcher.java:
package com.xxx;
 
import org.apache.dubbo.remoting.Dispatcher;
 
public class XxxDispatcher implements Dispatcher {
    public Group lookup(URL url) {
        // ...
    }
}
META-INF/dubbo/org.apache.dubbo.remoting.Dispatcher:
xxx=com.xxx.XxxDispatcher