public class RpcRequestMeta extends Object implements Readable, Writerable
RpcMeta| 构造器和说明 |
|---|
RpcRequestMeta() |
| 限定符和类型 | 方法和说明 |
|---|---|
RpcRequestMeta |
copy()
Copy.
|
List<RpcRequestMetaExtField> |
getExtFields()
Gets the ext fields.
|
Map<String,String> |
getExtFieldsAsMap()
Gets the ext fields as map.
|
byte[] |
getExtraParam()
Gets the 非PbRpc规范,用于传输额外的参数.
|
Long |
getLogId()
Gets the 用于打印日志。
|
String |
getMethodName()
Gets the 方法名.
|
Long |
getParentSpanId()
获取分布式追踪 Parent Span ID.
|
String |
getServiceName()
Gets the service name.
|
Long |
getSpanId()
获取分布式追踪 Trace ID.
|
Long |
getTraceId()
获取分布式追踪 Trace ID.
|
String |
getTraceKey()
Gets the trace key.
|
void |
read(byte[] bytes)
Read.
|
void |
setExtFields(List<RpcRequestMetaExtField> extFields)
Sets the ext fields.
|
void |
setExtraParam(byte[] extraParam)
Sets the 非PbRpc规范,用于传输额外的参数.
|
void |
setLogId(Long logId)
Sets the 用于打印日志。
|
void |
setMethodName(String methodName)
Sets the 方法名.
|
void |
setParentSpanId(Long parentSpanId)
设置分布式追踪 Parent Span ID.
|
void |
setServiceName(String serviceName)
Sets the 服务名.
|
void |
setSpanId(Long spanId)
设置分布式追踪 Span ID.
|
void |
setTraceId(Long traceId)
设置分布式追踪 Trace ID.
|
void |
setTraceKey(String traceKey)
Sets the trace key.
|
byte[] |
write()
Write.
|
public String getServiceName()
public void setServiceName(String serviceName)
serviceName - the new 服务名public String getMethodName()
public void setMethodName(String methodName)
methodName - the new 方法名public Long getLogId()
public void setLogId(Long logId)
logId - the new 用于打印日志。可用于存放BFE_LOGID。该参数可选。public byte[] write()
write 在接口中 Writerablepublic byte[] getExtraParam()
public void setExtraParam(byte[] extraParam)
extraParam - the new 非PbRpc规范,用于传输额外的参数public RpcRequestMeta copy()
public List<RpcRequestMetaExtField> getExtFields()
public Map<String,String> getExtFieldsAsMap()
public void setExtFields(List<RpcRequestMetaExtField> extFields)
extFields - the new ext fieldspublic Long getTraceId()
public void setTraceId(Long traceId)
traceId - Trace IDpublic Long getSpanId()
public void setSpanId(Long spanId)
spanId - Span IDpublic Long getParentSpanId()
public void setParentSpanId(Long parentSpanId)
parentSpanId - Parent Span IDpublic String getTraceKey()
public void setTraceKey(String traceKey)
traceKey - the new trace keyCopyright © 2022 Baidu, Inc.. All rights reserved.