refer
public <T> Invoker<T> refer(Class<T> type,
URL url)
throws RpcException
Refer a remote service:
1. When user calls `invoke()` method of `Invoker` object which's returned from `refer()` call, the protocol
needs to correspondingly execute `invoke()` method of `Invoker` object
2. It's protocol's responsibility to implement `Invoker` which's returned from `refer()`. Generally speaking,
protocol sends remote request in the `Invoker` implementation.
3. When there's check=false set in URL, the implementation must not throw exception but try to recover when
connection fails.
- 类型参数:
T - Service type- 参数:
type - Service classurl - URL address for the remote service
- 返回:
- invoker service's local proxy
- 抛出:
RpcException - when there's any error while connecting to the service provider