com.alibaba.dubbo.rpc.protocol.dubbo
Class DecodeableRpcResult
java.lang.Object
com.alibaba.dubbo.rpc.RpcResult
com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult
- All Implemented Interfaces:
- Codec, Decodeable, Result, Serializable
public class DecodeableRpcResult
- extends RpcResult
- implements Codec, Decodeable
- Author:
- kimi
- See Also:
- Serialized Form
Methods inherited from class com.alibaba.dubbo.rpc.RpcResult |
getAttachment, getAttachment, getAttachments, getException, getResult, getValue, hasException, recreate, setAttachment, setAttachments, setException, setResult, setValue, toString |
DecodeableRpcResult
public DecodeableRpcResult(Channel channel,
Response response,
InputStream is,
Invocation invocation,
byte id)
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
decode
public void decode()
throws Exception
- Specified by:
decode
in interface Decodeable
- Throws:
Exception
Copyright © 2012–2017 Alibaba. All rights reserved.