public ProtocolListenerWrapper(Protocol protocol)
public int getDefaultPort()
ProtocolgetDefaultPort 在接口中 Protocolpublic <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
Protocolexport 在接口中 ProtocolT - 服务的类型invoker - 服务的执行体RpcException - 当暴露服务出错时抛出,比如端口已占用public <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException
Protocolrefer 在接口中 ProtocolT - 服务的类型type - 服务的类型url - 远程服务的URL地址RpcException - 当连接服务提供方失败时抛出Copyright © 2012–2017 Alibaba. All rights reserved.