public class SofaRequest extends RequestBase
INFO: this object will create in every RPC request
| 构造器和说明 |
|---|
SofaRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRequestProp(String key,
Object value)
Add request prop.
|
void |
addRequestProps(Map<String,Object> map)
Add request props.
|
AbstractByteBuf |
getData()
Gets data.
|
String |
getInterfaceName()
Gets interface name.
|
String |
getInvokeType()
Gets invoke type.
|
Method |
getMethod()
Gets method.
|
Object |
getRequestProp(String key)
Gets request prop.
|
Map<String,Object> |
getRequestProps()
Gets request props.
|
byte |
getSerializeType()
Gets serialize type.
|
SofaResponseCallback |
getSofaResponseCallback()
Gets sofa response callback.
|
String |
getTargetAppName()
Gets target app name.
|
Integer |
getTimeout()
Gets timeout.
|
boolean |
isAsync()
是否异步请求
|
void |
removeRequestProp(String key)
Remove request prop.
|
SofaRequest |
setData(AbstractByteBuf data)
Sets data.
|
void |
setInterfaceName(String interfaceName)
Sets interface name.
|
SofaRequest |
setInvokeType(String invokeType)
Sets invoke type.
|
void |
setMethod(Method method)
Sets method.
|
SofaRequest |
setSerializeType(byte serializeType)
Sets serialize type.
|
SofaRequest |
setSofaResponseCallback(SofaResponseCallback sofaResponseCallback)
Sets sofa response callback.
|
void |
setTargetAppName(String targetAppName)
Sets target app name.
|
SofaRequest |
setTimeout(Integer timeout)
Sets timeout.
|
getMethodArgs, getMethodArgSigs, getMethodName, getTargetServiceUniqueName, setMethodArgs, setMethodArgSigs, setMethodName, setTargetServiceUniqueName, toStringpublic Object getRequestProp(String key)
key - the keypublic void addRequestProp(String key, Object value)
key - the keyvalue - the valuepublic void removeRequestProp(String key)
key - the keypublic void addRequestProps(Map<String,Object> map)
map - the mappublic Map<String,Object> getRequestProps()
public String getTargetAppName()
public void setTargetAppName(String targetAppName)
targetAppName - the target app namepublic Method getMethod()
public void setMethod(Method method)
method - the methodpublic byte getSerializeType()
public SofaRequest setSerializeType(byte serializeType)
serializeType - the serialize typepublic String getInvokeType()
public SofaRequest setInvokeType(String invokeType)
invokeType - the invoke typepublic String getInterfaceName()
public void setInterfaceName(String interfaceName)
interfaceName - the interface namepublic SofaResponseCallback getSofaResponseCallback()
public SofaRequest setSofaResponseCallback(SofaResponseCallback sofaResponseCallback)
sofaResponseCallback - the sofa response callbackpublic Integer getTimeout()
public SofaRequest setTimeout(Integer timeout)
timeout - the timeoutpublic AbstractByteBuf getData()
public SofaRequest setData(AbstractByteBuf data)
data - the datapublic boolean isAsync()
Copyright © 2008–2018 The Ant Financial. All rights reserved.