com.alibaba.dubbo.rpc.protocol.dubbo
Class DecodeableRpcInvocation
java.lang.Object
com.alibaba.dubbo.rpc.RpcInvocation
com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation
- All Implemented Interfaces:
- Codec, Decodeable, Invocation, Serializable
public class DecodeableRpcInvocation
- extends RpcInvocation
- implements Codec, Decodeable
- Author:
- kimi
- See Also:
- Serialized Form
Methods inherited from class com.alibaba.dubbo.rpc.RpcInvocation |
addAttachments, addAttachmentsIfAbsent, getArguments, getAttachment, getAttachment, getAttachments, getInvoker, getMethodName, getParameterTypes, 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
- Specified by:
decode
in interface Decodeable
- Throws:
Exception
encode
public void encode(Channel channel,
OutputStream output,
Object message)
throws IOException
- Description copied from interface:
Codec
- Encode message.
- Specified by:
encode
in interface Codec
- Parameters:
channel
- channel.output
- output stream.message
- message.
- Throws:
IOException
decode
public Object decode(Channel channel,
InputStream input)
throws IOException
- Description copied from interface:
Codec
- Decode message.
- Specified by:
decode
in interface Codec
- Parameters:
channel
- channel.input
- input stream.
- Returns:
- message or
NEED_MORE_INPUT
poison.
- Throws:
IOException
- See Also:
Codec.NEED_MORE_INPUT
Copyright © 2012–2017 Alibaba. All rights reserved.