W3Cschool
恭喜您成為首批注冊(cè)用戶(hù)
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
通道信息派發(fā)器,用于指定線程池模型。
org.apache.dubbo.remoting.Dispatcher
<dubbo:protocol dispatcher="xxx" />
<!-- 缺省值設(shè)置,當(dāng)<dubbo:protocol>沒(méi)有配置dispatcher屬性時(shí),使用此配置 -->
<dubbo:provider dispatcher="xxx" />
Maven 項(xiàng)目結(jié)構(gòu):
src
|-main
|-java
|-com
|-xxx
|-XxxDispatcher.java (實(shí)現(xiàn)Dispatcher接口)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.remoting.Dispatcher (純文本文件,內(nèi)容為: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
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: