模块 org.redkale
类 ClientResponse<R extends ClientRequest,P extends ClientResult>
- java.lang.Object
-
- org.redkale.net.client.ClientResponse<R,P>
-
- 类型参数:
R
- 请求对象P
- message
public class ClientResponse<R extends ClientRequest,P extends ClientResult> extends Object
详情见: https://redkale.org- 从以下版本开始:
- 2.3.0
- 作者:
- zhangjx
-
-
构造器概要
构造器 构造器 说明 ClientResponse()
ClientResponse(R request, Throwable exc)
ClientResponse(R request, P message)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ClientResponse<R,P>
fail(R request, Throwable exc)
Throwable
getCause()
P
getMessage()
R
getRequest()
Serializable
getRequestid()
protected void
prepare()
protected boolean
recycle()
void
setCause(Throwable cause)
void
setMessage(P message)
void
setRequest(R request)
ClientResponse<R,P>
success(R request, P message)
String
toString()
-
-
-
字段详细资料
-
request
@Nullable protected R extends ClientRequest request
-
message
protected P extends ClientResult message
-
cause
protected Throwable cause
-
-
方法详细资料
-
getRequestid
public Serializable getRequestid()
-
success
public ClientResponse<R,P> success(R request, P message)
-
fail
public ClientResponse<R,P> fail(R request, Throwable exc)
-
prepare
protected void prepare()
-
recycle
protected boolean recycle()
-
getRequest
public R getRequest()
-
setRequest
public void setRequest(R request)
-
getMessage
public P getMessage()
-
setMessage
public void setMessage(P message)
-
getCause
public Throwable getCause()
-
setCause
public void setCause(Throwable cause)
-
-