| 构造器和说明 |
|---|
ProtocolListenerWrapper(Protocol protocol) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Destroy protocol:
1. |
<T> Exporter<T> |
export(Invoker<T> invoker)
Export service for remote invocation:
1. |
int |
getDefaultPort()
Get default port when user doesn't config the port.
|
List<ProtocolServer> |
getServers()
Get all servers serving this protocol
|
<T> Invoker<T> |
refer(Class<T> type,
URL url)
Refer a remote service:
1. |
public ProtocolListenerWrapper(Protocol protocol)
public int getDefaultPort()
ProtocolgetDefaultPort 在接口中 Protocolpublic <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
Protocolexport 在接口中 ProtocolT - Service typeinvoker - Service invokerRpcException - thrown when error occurs during export the service, for example: port is occupiedpublic <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 void destroy()
Protocolpublic List<ProtocolServer> getServers()
ProtocolgetServers 在接口中 ProtocolCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.