public class MethodConfig extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected Boolean |
cache
是否启用客户端缓存
|
protected String |
compress
是否启动压缩
|
protected Integer |
concurrents
最大并发执行(不管服务端还是客户端)
|
protected Integer |
dstParam
目标参数(机房/分组)索引,第一个参数从0开始
// TODO 待实现
|
protected String |
invokeType
调用方式
|
protected SofaResponseCallback |
onReturn
返回值之前的listener
|
protected Map<String,String> |
parameters
The Parameters.
|
protected Integer |
retries
The Retries.
|
protected Integer |
timeout
The Timeout.
|
protected Boolean |
validation
The Validation.
|
| 构造器和说明 |
|---|
MethodConfig() |
protected Integer timeout
protected Integer retries
protected String invokeType
protected Boolean validation
protected SofaResponseCallback onReturn
protected Integer concurrents
protected Boolean cache
protected String compress
protected Integer dstParam
public String getName()
public MethodConfig setName(String name)
name - the namepublic MethodConfig setParameters(Map<String,String> parameters)
parameters - the parameterspublic Integer getTimeout()
public MethodConfig setTimeout(Integer timeout)
timeout - the timeoutpublic Integer getRetries()
public MethodConfig setRetries(Integer retries)
retries - the retriespublic String getInvokeType()
public MethodConfig setInvokeType(String invokeType)
invokeType - the invoke typepublic Integer getConcurrents()
public MethodConfig setConcurrents(Integer concurrents)
concurrents - the concurrentspublic Boolean getCache()
public MethodConfig setCache(Boolean cache)
cache - the cachepublic MethodConfig setValidation(Boolean validation)
validation - the validationpublic Boolean getValidation()
public SofaResponseCallback getOnReturn()
public MethodConfig setOnReturn(SofaResponseCallback onReturn)
onReturn - the onReturnpublic String getCompress()
public MethodConfig setCompress(String compress)
compress - the compresspublic Integer getDstParam()
public MethodConfig setDstParam(Integer dstParam)
dstParam - the dst parampublic MethodConfig setParameter(String key, String value)
key - the keyvalue - the valueCopyright © 2008–2018 The Ant Financial. All rights reserved.