类 MethodBuilder
- java.lang.Object
-
- org.apache.dubbo.config.bootstrap.builders.AbstractBuilder<T,B>
-
- org.apache.dubbo.config.bootstrap.builders.AbstractMethodBuilder<org.apache.dubbo.config.MethodConfig,MethodBuilder>
-
- org.apache.dubbo.config.bootstrap.builders.MethodBuilder
-
public class MethodBuilder extends AbstractMethodBuilder<org.apache.dubbo.config.MethodConfig,MethodBuilder>
This is a builder for buildMethodConfig.- 从以下版本开始:
- 2.7
-
-
构造器概要
构造器 构造器 说明 MethodBuilder()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 MethodBuilderaddArgument(org.apache.dubbo.config.ArgumentConfig argument)MethodBuilderaddArguments(List<? extends org.apache.dubbo.config.ArgumentConfig> arguments)org.apache.dubbo.config.MethodConfigbuild()Build an instance ofconfigMethodBuilderdeprecated(Boolean deprecated)MethodBuilderexecutes(Integer executes)MethodBuilderisReturn(Boolean isReturn)MethodBuildername(String name)MethodBuilderoninvoke(Object oninvoke)MethodBuilderoninvokeMethod(String oninvokeMethod)MethodBuilderonreturn(Object onreturn)MethodBuilderonreturnMethod(String onreturnMethod)MethodBuilderonthrow(Object onthrow)MethodBuilderonthrowMethod(String onthrowMethod)MethodBuilderreliable(Boolean reliable)MethodBuilderretry(Boolean retry)MethodBuilderservice(String service)MethodBuilderserviceId(String serviceId)MethodBuilderstat(Integer stat)MethodBuildersticky(Boolean sticky)-
从类继承的方法 org.apache.dubbo.config.bootstrap.builders.AbstractMethodBuilder
actives, appendParameter, appendParameters, async, build, cache, forks, loadbalance, merger, mock, mock, retries, sent, timeout, validation
-
从类继承的方法 org.apache.dubbo.config.bootstrap.builders.AbstractBuilder
id
-
-
-
-
方法详细资料
-
name
public MethodBuilder name(String name)
-
stat
public MethodBuilder stat(Integer stat)
-
retry
public MethodBuilder retry(Boolean retry)
-
reliable
public MethodBuilder reliable(Boolean reliable)
-
executes
public MethodBuilder executes(Integer executes)
-
deprecated
public MethodBuilder deprecated(Boolean deprecated)
-
sticky
public MethodBuilder sticky(Boolean sticky)
-
isReturn
public MethodBuilder isReturn(Boolean isReturn)
-
oninvoke
public MethodBuilder oninvoke(Object oninvoke)
-
oninvokeMethod
public MethodBuilder oninvokeMethod(String oninvokeMethod)
-
onreturn
public MethodBuilder onreturn(Object onreturn)
-
onreturnMethod
public MethodBuilder onreturnMethod(String onreturnMethod)
-
onthrow
public MethodBuilder onthrow(Object onthrow)
-
onthrowMethod
public MethodBuilder onthrowMethod(String onthrowMethod)
-
addArguments
public MethodBuilder addArguments(List<? extends org.apache.dubbo.config.ArgumentConfig> arguments)
-
addArgument
public MethodBuilder addArgument(org.apache.dubbo.config.ArgumentConfig argument)
-
service
public MethodBuilder service(String service)
-
serviceId
public MethodBuilder serviceId(String serviceId)
-
build
public org.apache.dubbo.config.MethodConfig build()
从类复制的说明:AbstractBuilderBuild an instance ofconfig- 指定者:
build在类中AbstractBuilder<org.apache.dubbo.config.MethodConfig,MethodBuilder>- 返回:
- an instance of
config
-
-