- java.lang.Object
-
- org.redkale.net.client.ClientRequest
-
- 直接已知子类:
SncpClientRequest
,WebRequest
public abstract class ClientRequest extends Object
详情见: https://redkale.org- 从以下版本开始:
- 2.3.0
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected long
createTime
static byte[]
EMPTY_TRACEID
protected String
traceid
protected WorkThread
workThread
-
构造器概要
构造器 构造器 说明 ClientRequest()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 long
getCreateTime()
Serializable
getRequestid()
String
getTraceid()
boolean
isCloseType()
protected boolean
isCompleted()
boolean
isVirtualType()
protected void
prepare()
protected boolean
recycle()
byte[]
traceBytes()
<T extends ClientRequest>
Ttraceid(String traceid)
<T extends ClientRequest>
TworkThread(WorkThread thread)
abstract void
writeTo(ClientConnection conn, ByteArray array)
-
-
-
字段详细资料
-
EMPTY_TRACEID
public static final byte[] EMPTY_TRACEID
-
traceid
@ConvertColumn(index=1) protected String traceid
-
createTime
@ConvertColumn(index=2) protected long createTime
-
workThread
protected WorkThread workThread
-
-
方法详细资料
-
writeTo
public abstract void writeTo(ClientConnection conn, ByteArray array)
-
getRequestid
public Serializable getRequestid()
-
isCloseType
public boolean isCloseType()
-
isVirtualType
public boolean isVirtualType()
-
getCreateTime
public long getCreateTime()
-
getTraceid
public String getTraceid()
-
traceBytes
public byte[] traceBytes()
-
workThread
public <T extends ClientRequest> T workThread(WorkThread thread)
-
traceid
public <T extends ClientRequest> T traceid(String traceid)
-
isCompleted
protected boolean isCompleted()
-
prepare
protected void prepare()
-
recycle
protected boolean recycle()
-
-