类 ConsumerModel


  • public class ConsumerModel
    extends Object
    This model is bound to your reference's configuration, for example, group, version or method level configuration.
    • 方法详细资料

      • getProxyObject

        public Object getProxyObject()
        Return the proxy object used by called while creating instance of ConsumerModel
        返回:
      • setProxyObject

        public void setProxyObject​(Object proxyObject)
      • getAllMethods

        public Set<MethodDescriptor> getAllMethods()
        Return all method models for the current service
        返回:
        method model list
      • getServiceInterfaceClass

        public Class<?> getServiceInterfaceClass()
      • getServiceKey

        public String getServiceKey()
      • setServiceKey

        public void setServiceKey​(String serviceKey)
      • initMethodModels

        public void initMethodModels()
      • getServiceMetadata

        public ServiceMetadata getServiceMetadata()
        返回:
        serviceMetadata
      • getMethodModel

        public ConsumerMethodModel getMethodModel​(Method method)
        Return method model for the given method on consumer side
        参数:
        method - method object
        返回:
        method model
      • getMethodModel

        public ConsumerMethodModel getMethodModel​(String method)
        Return method model for the given method on consumer side
        参数:
        method - method object
        返回:
        method model
      • getMethodModel

        public ConsumerMethodModel getMethodModel​(String method,
                                                  String[] argsType)
        参数:
        method - methodName
        argsType - method arguments type
        返回:
      • getAllMethodModels

        public List<ConsumerMethodModel> getAllMethodModels()
        Return all method models for the current service
        返回:
        method model list
      • getServiceName

        public String getServiceName()