public abstract class AbstractProtocol extends Object implements Protocol
| 构造器和说明 |
|---|
AbstractProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Destroy protocol:
1. |
Map<String,Exporter<?>> |
getExporterMap() |
Collection<Exporter<?>> |
getExporters() |
List<ProtocolServer> |
getServers()
Get all servers serving this protocol
|
<T> Invoker<T> |
refer(Class<T> type,
URL url)
Refer a remote service:
1. |
export, getDefaultPortpublic List<ProtocolServer> getServers()
ProtocolgetServers 在接口中 Protocolpublic void destroy()
Protocolpublic <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException
Protocolrefer 在接口中 ProtocolT - Service typetype - Service classurl - URL address for the remote serviceRpcException - when there's any error while connecting to the service providerpublic Collection<Exporter<?>> getExporters()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.