类 DecodeableRpcInvocation
- java.lang.Object
-
- org.apache.dubbo.rpc.RpcInvocation
-
- org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation
-
- 所有已实现的接口:
Serializable,Codec,Decodeable,Invocation
public class DecodeableRpcInvocation extends RpcInvocation implements Codec, Decodeable
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从接口继承的字段 org.apache.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.-
从类继承的方法 org.apache.dubbo.rpc.RpcInvocation
addAttachments, addAttachmentsIfAbsent, addObjectAttachments, addObjectAttachmentsIfAbsent, get, getArguments, getAttachment, getAttachment, getAttachments, getAttributes, getCompatibleParamSignatures, getInvokeMode, getInvoker, getMethodName, getObjectAttachment, getObjectAttachment, getObjectAttachments, getParameterTypes, getParameterTypesDesc, getProtocolServiceKey, getReturnType, getReturnTypes, getServiceName, getTargetServiceUniqueName, put, setArguments, setAttachment, setAttachment, setAttachmentIfAbsent, setAttachmentIfAbsent, setAttachments, setCompatibleParamSignatures, setInvokeMode, setInvoker, setMethodName, setObjectAttachment, setObjectAttachmentIfAbsent, setObjectAttachments, setParameterTypes, setParameterTypesDesc, setReturnType, setReturnTypes, setServiceName, setTargetServiceUniqueName, 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
-
-