@SPI(value="dubbo") public interface Protocol
int getDefaultPort()
@Adaptive <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
T - Service typeinvoker - Service invokerRpcException - thrown when error occurs during export the service, for example: port is occupied@Adaptive <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException
T - Service typetype - Service classurl - URL address for the remote serviceRpcException - when there's any error while connecting to the service providervoid destroy()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.