public class RpcContext extends Object
| 构造器和说明 |
|---|
RpcContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.channel.Channel |
getChannel() |
static RpcContext |
getContext() |
String |
getRemoteHost() |
io.netty.buffer.ByteBuf |
getRequestBinaryAttachment() |
Map<String,String> |
getRequestKvAttachment() |
io.netty.buffer.ByteBuf |
getResponseBinaryAttachment() |
Map<String,String> |
getResponseKvAttachment() |
void |
putRequestKvAttachment(String key,
String value) |
static void |
removeContext() |
static void |
removeContext(RpcContext rpcContext) |
static void |
removeServerContext() |
void |
reset() |
void |
setChannel(io.netty.channel.Channel channel) |
void |
setChannelForServer(io.netty.channel.Channel channel) |
void |
setRequestBinaryAttachment(byte[] bytes) |
void |
setRequestBinaryAttachment(io.netty.buffer.ByteBuf byteBuf) |
void |
setRequestKvAttachment(Map<String,String> requestKvAttachment) |
void |
setResponseBinaryAttachment(io.netty.buffer.ByteBuf responseBinaryAttachment) |
void |
setResponseKvAttachment(Map<String,String> responseKvAttachment) |
public static RpcContext getContext()
public static void removeContext(RpcContext rpcContext)
public static void removeServerContext()
public static void removeContext()
public void reset()
public void setRequestBinaryAttachment(io.netty.buffer.ByteBuf byteBuf)
public void setRequestBinaryAttachment(byte[] bytes)
public void setResponseKvAttachment(Map<String,String> responseKvAttachment)
public void setResponseBinaryAttachment(io.netty.buffer.ByteBuf responseBinaryAttachment)
public io.netty.buffer.ByteBuf getRequestBinaryAttachment()
public io.netty.buffer.ByteBuf getResponseBinaryAttachment()
public io.netty.channel.Channel getChannel()
public void setChannel(io.netty.channel.Channel channel)
public void setChannelForServer(io.netty.channel.Channel channel)
public String getRemoteHost()
Copyright © 2019 Baidu, Inc.. All rights reserved.