类 ConsumerModel
- java.lang.Object
-
- org.apache.dubbo.rpc.model.ServiceModel
-
- org.apache.dubbo.rpc.model.ConsumerModel
-
public class ConsumerModel extends ServiceModel
This model is bound to your reference's configuration, for example, group, version or method level configuration.
-
-
构造器概要
构造器 构造器 说明 ConsumerModel(String serviceKey, Object proxyObject, ServiceDescriptor serviceModel, ReferenceConfigBase<?> referenceConfig, Map<String,AsyncMethodInfo> methodConfigs)This constructor creates an instance of ConsumerModel and passed objects should not be null.ConsumerModel(String serviceKey, Object proxyObject, ServiceDescriptor serviceModel, ReferenceConfigBase<?> referenceConfig, ModuleModel moduleModel, ServiceMetadata metadata, Map<String,AsyncMethodInfo> methodConfigs)ConsumerModel(String serviceKey, Object proxyObject, ServiceDescriptor serviceModel, ReferenceConfigBase<?> referenceConfig, ServiceMetadata metadata, Map<String,AsyncMethodInfo> methodConfigs)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object o)List<ConsumerMethodModel>getAllMethodModels()Return all method models for the current serviceSet<String>getApps()AsyncMethodInfogetAsyncInfo(String methodName)AsyncMethodInfogetMethodConfig(String methodName)ConsumerMethodModelgetMethodModel(Method method)Return method model for the given method on consumer sideConsumerMethodModelgetMethodModel(String method)Return method model for the given method on consumer sideConsumerMethodModelgetMethodModel(String method, String[] argsType)inthashCode()voidinitMethodModels()-
从类继承的方法 org.apache.dubbo.rpc.model.ServiceModel
getAllMethods, getClassLoader, getConfig, getDestroyCaller, getModuleModel, getProxyObject, getReferenceConfig, getServiceConfig, getServiceInterfaceClass, getServiceKey, getServiceMetadata, getServiceModel, getServiceName, setClassLoader, setDestroyCaller, setProxyObject, setServiceKey
-
-
-
-
构造器详细资料
-
ConsumerModel
public ConsumerModel(String serviceKey, Object proxyObject, ServiceDescriptor serviceModel, ReferenceConfigBase<?> referenceConfig, Map<String,AsyncMethodInfo> methodConfigs)
This constructor creates an instance of ConsumerModel and passed objects should not be null. If service name, service instance, proxy object,methods should not be null. If these are null then this constructor will throwIllegalArgumentException- 参数:
serviceKey- Name of the service.proxyObject- Proxy object.
-
ConsumerModel
public ConsumerModel(String serviceKey, Object proxyObject, ServiceDescriptor serviceModel, ReferenceConfigBase<?> referenceConfig, ServiceMetadata metadata, Map<String,AsyncMethodInfo> methodConfigs)
-
ConsumerModel
public ConsumerModel(String serviceKey, Object proxyObject, ServiceDescriptor serviceModel, ReferenceConfigBase<?> referenceConfig, ModuleModel moduleModel, ServiceMetadata metadata, Map<String,AsyncMethodInfo> methodConfigs)
-
-
方法详细资料
-
getMethodConfig
public AsyncMethodInfo getMethodConfig(String methodName)
-
getAsyncInfo
public AsyncMethodInfo getAsyncInfo(String methodName)
-
initMethodModels
public void initMethodModels()
-
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- methodNameargsType- method arguments type- 返回:
-
getAllMethodModels
public List<ConsumerMethodModel> getAllMethodModels()
Return all method models for the current service- 返回:
- method model list
-
equals
public boolean equals(Object o)
- 覆盖:
equals在类中ServiceModel
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中ServiceModel
-
-