public interface RsfRequest extends RsfHeader
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getAttribute(String attrKey)
获取属性
|
Enumeration<String> |
getAttributeNames()
获取所有属性名。
|
RsfContext |
getContext()
获取上下文。
|
Method |
getMethod()
获取要调用的目标方法。
|
Object[] |
getParameterObject()
获取请求参数值。
|
Class<?>[] |
getParameterTypes()
获取请求参数类型。
|
long |
getReceiveTime()
请求到达时间(如果是本地发起的请求,该值为当前时间)。
|
InterAddress |
getRemoteAddress()
获取发送请求的远程服务器使用的地址和端口,如果是本地发起的该地址则是本地RSF的地址。
|
InterAddress |
getTargetAddress()
获取请求准备发送的目标地址(如果是分布式调用该方法会返回null)
|
int |
getTimeout()
超时时间。
|
boolean |
isLocal()
请求是否为本地发起的。
|
boolean |
isMessage()
请求是否为消息类请求,对于消息类请求返回值是无效的。
|
boolean |
isP2PCalls()
判断当前请求是否为点对点定向调用。
|
void |
removeAttribute(String attrKey)
删除属性
|
void |
setAttribute(String attrKey,
Object attrValue)
保存属性,属性会在请求完毕之后丢失。
|
getBindInfo, getRequestID, getSerializeTypeaddOption, getOption, getOptionKeys, removeOptionvoid setAttribute(String attrKey, Object attrValue)
void removeAttribute(String attrKey)
Enumeration<String> getAttributeNames()
boolean isLocal()
boolean isMessage()
Method getMethod()
RsfContext getContext()
long getReceiveTime()
int getTimeout()
Class<?>[] getParameterTypes()
Object[] getParameterObject()
InterAddress getRemoteAddress()
InterAddress getTargetAddress()
boolean isP2PCalls()
Copyright © 2020–2021. All rights reserved.