类 ReferenceBuilder<T>
- java.lang.Object
-
- org.apache.dubbo.config.bootstrap.builders.AbstractBuilder<T,B>
-
- org.apache.dubbo.config.bootstrap.builders.AbstractMethodBuilder<T,B>
-
- org.apache.dubbo.config.bootstrap.builders.AbstractInterfaceBuilder<T,B>
-
- org.apache.dubbo.config.bootstrap.builders.AbstractReferenceBuilder<ReferenceConfig<T>,ReferenceBuilder<T>>
-
- org.apache.dubbo.config.bootstrap.builders.ReferenceBuilder<T>
-
public class ReferenceBuilder<T> extends AbstractReferenceBuilder<ReferenceConfig<T>,ReferenceBuilder<T>>
This is a builder for buildReferenceConfigBase
.- 从以下版本开始:
- 2.7
-
-
构造器概要
构造器 构造器 说明 ReferenceBuilder()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 ReferenceBuilder<T>
addMethod(MethodConfig method)
ReferenceBuilder<T>
addMethods(List<MethodConfig> methods)
ReferenceConfig<T>
build()
Build an instance ofconfig
ReferenceBuilder<T>
client(String client)
ReferenceBuilder<T>
consumer(ConsumerConfig consumer)
ReferenceBuilder<T>
id(String id)
ReferenceBuilder<T>
interfaceClass(Class<?> interfaceClass)
ReferenceBuilder<T>
interfaceName(String interfaceName)
static <T> ReferenceBuilder<T>
newBuilder()
ReferenceBuilder<T>
protocol(String protocol)
ReferenceBuilder<T>
services(String service, String... otherServices)
ReferenceBuilder<T>
url(String url)
-
从类继承的方法 org.apache.dubbo.config.bootstrap.builders.AbstractReferenceBuilder
build, check, generic, generic, group, init, injvm, lazy, reconnect, sticky, version
-
从类继承的方法 org.apache.dubbo.config.bootstrap.builders.AbstractInterfaceBuilder
addRegistries, addRegistry, application, callbacks, cluster, configCenter, connections, filter, layer, listener, local, local, metadataReportConfig, module, monitor, monitor, onconnect, ondisconnect, owner, proxy, registryIds, scope, stub, stub, tag
-
从类继承的方法 org.apache.dubbo.config.bootstrap.builders.AbstractMethodBuilder
actives, appendParameter, appendParameters, async, cache, forks, loadbalance, merger, mock, mock, retries, sent, timeout, validation
-
-
-
-
方法详细资料
-
newBuilder
public static <T> ReferenceBuilder<T> newBuilder()
-
id
public ReferenceBuilder<T> id(String id)
- 覆盖:
id
在类中AbstractBuilder<ReferenceConfig<T>,ReferenceBuilder<T>>
-
interfaceName
public ReferenceBuilder<T> interfaceName(String interfaceName)
-
interfaceClass
public ReferenceBuilder<T> interfaceClass(Class<?> interfaceClass)
-
client
public ReferenceBuilder<T> client(String client)
-
url
public ReferenceBuilder<T> url(String url)
-
addMethods
public ReferenceBuilder<T> addMethods(List<MethodConfig> methods)
-
addMethod
public ReferenceBuilder<T> addMethod(MethodConfig method)
-
consumer
public ReferenceBuilder<T> consumer(ConsumerConfig consumer)
-
protocol
public ReferenceBuilder<T> protocol(String protocol)
-
services
public ReferenceBuilder<T> services(String service, String... otherServices)
- 参数:
service
- one service nameotherServices
- other service names- 返回:
ReferenceBuilder
- 从以下版本开始:
- 2.7.8
-
build
public ReferenceConfig<T> build()
从类复制的说明:AbstractBuilder
Build an instance ofconfig
- 指定者:
build
在类中AbstractBuilder<ReferenceConfig<T>,ReferenceBuilder<T>>
- 返回:
- an instance of
config
-
-