public class DubboProtocol extends AbstractProtocol
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_PORT |
static String |
NAME |
| 构造器和说明 |
|---|
DubboProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
<T> Exporter<T> |
export(Invoker<T> invoker) |
int |
getDefaultPort() |
static DubboProtocol |
getDubboProtocol()
已过时。
Use
getDubboProtocol(ScopeModel) instead |
static DubboProtocol |
getDubboProtocol(org.apache.dubbo.rpc.model.ScopeModel scopeModel) |
Collection<Invoker<?>> |
getInvokers() |
<T> Invoker<T> |
protocolBindingRefer(Class<T> serviceType,
org.apache.dubbo.common.URL url) |
<T> Invoker<T> |
refer(Class<T> type,
org.apache.dubbo.common.URL url) |
getExporterMap, getExporters, getServers, setFrameworkModelsetApplicationModel, setModuleModel, setScopeModelpublic static final int DEFAULT_PORT
@Deprecated public static DubboProtocol getDubboProtocol()
getDubboProtocol(ScopeModel) insteadpublic static DubboProtocol getDubboProtocol(org.apache.dubbo.rpc.model.ScopeModel scopeModel)
public Collection<Invoker<?>> getInvokers()
public int getDefaultPort()
public <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
RpcExceptionpublic <T> Invoker<T> refer(Class<T> type, org.apache.dubbo.common.URL url) throws RpcException
refer 在接口中 Protocolrefer 在类中 AbstractProtocolRpcExceptionpublic <T> Invoker<T> protocolBindingRefer(Class<T> serviceType, org.apache.dubbo.common.URL url) throws RpcException
protocolBindingRefer 在类中 AbstractProtocolRpcExceptionpublic void destroy()
destroy 在接口中 Protocoldestroy 在类中 AbstractProtocolCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.