类 DecodeableRpcInvocation
- java.lang.Object
-
- com.alibaba.dubbo.rpc.RpcInvocation
-
- com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation
-
- 所有已实现的接口:
Codec,Decodeable,Invocation,Serializable
public class DecodeableRpcInvocation extends RpcInvocation implements Codec, Decodeable
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从接口继承的字段 com.alibaba.dubbo.remoting.Codec
NEED_MORE_INPUT
-
-
构造器概要
构造器 构造器 说明 DecodeableRpcInvocation(Channel channel, Request request, InputStream is, byte id)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddecode()Objectdecode(Channel channel, InputStream input)Decode message.voidencode(Channel channel, OutputStream output, Object message)Encode message.-
从类继承的方法 com.alibaba.dubbo.rpc.RpcInvocation
addAttachments, addAttachmentsIfAbsent, get, getArguments, getAttachment, getAttachment, getAttachments, getAttributes, getInvoker, getMethodName, getParameterTypes, put, setArguments, setAttachment, setAttachmentIfAbsent, setAttachments, setInvoker, setMethodName, setParameterTypes, toString
-
-
-
-
构造器详细资料
-
DecodeableRpcInvocation
public DecodeableRpcInvocation(Channel channel, Request request, InputStream is, byte id)
-
-
方法详细资料
-
decode
public void decode() throws Exception- 指定者:
decode在接口中Decodeable- 抛出:
Exception
-
encode
public void encode(Channel channel, OutputStream output, Object message) throws IOException
从接口复制的说明:CodecEncode message.- 指定者:
encode在接口中Codec- 参数:
channel- channel.output- output stream.message- message.- 抛出:
IOException
-
decode
public Object decode(Channel channel, InputStream input) throws IOException
从接口复制的说明:CodecDecode message.- 指定者:
decode在接口中Codec- 参数:
channel- channel.input- input stream.- 返回:
- message or
NEED_MORE_INPUTpoison. - 抛出:
IOException- 另请参阅:
Codec.NEED_MORE_INPUT
-
-