public class RpcMessage extends Object
| 构造器和说明 |
|---|
RpcMessage() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getBody()
Gets body.
|
byte |
getCodec()
Gets codec.
|
byte |
getCompressor()
Gets compressor.
|
String |
getHead(String headKey)
Gets head.
|
Map<String,String> |
getHeadMap()
Gets head map.
|
int |
getId()
Gets id.
|
byte |
getMessageType()
Gets message type.
|
void |
putHead(String headKey,
String headValue)
Put head.
|
void |
setBody(Object body)
Sets body.
|
RpcMessage |
setCodec(byte codec)
Sets codec.
|
RpcMessage |
setCompressor(byte compressor)
Sets compressor.
|
RpcMessage |
setHeadMap(Map<String,String> headMap)
Sets head map.
|
void |
setId(int id)
Sets id.
|
void |
setMessageType(byte messageType)
Sets message type.
|
String |
toString() |
public int getId()
public void setId(int id)
id - the idpublic Object getBody()
public void setBody(Object body)
body - the bodypublic byte getCodec()
public RpcMessage setCodec(byte codec)
codec - the codecpublic byte getCompressor()
public RpcMessage setCompressor(byte compressor)
compressor - the compressorpublic RpcMessage setHeadMap(Map<String,String> headMap)
headMap - the head mappublic void putHead(String headKey, String headValue)
headKey - the head keyheadValue - the head valuepublic byte getMessageType()
public void setMessageType(byte messageType)
messageType - the message typeCopyright © 2020 Seata. All rights reserved.