public final class MockProtocol extends AbstractProtocol
| 构造器和说明 |
|---|
MockProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
<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.
|
<T> Invoker<T> |
protocolBindingRefer(Class<T> type,
URL url) |
destroy, getExporterMap, getExporters, getServers, referpublic int getDefaultPort()
Protocolpublic <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
ProtocolT - Service typeinvoker - Service invokerRpcException - thrown when error occurs during export the service, for example: port is occupiedpublic <T> Invoker<T> protocolBindingRefer(Class<T> type, URL url) throws RpcException
RpcExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.