public class DecodeableRpcResult extends RpcResult implements Codec, Decodeable
NEED_MORE_INPUT| Constructor and Description |
|---|
DecodeableRpcResult(Channel channel,
Response response,
InputStream is,
Invocation invocation,
byte id) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode() |
Object |
decode(Channel channel,
InputStream input)
Decode message.
|
void |
encode(Channel channel,
OutputStream output,
Object message)
Encode message.
|
addAttachments, getAttachment, getAttachment, getAttachments, getException, getResult, getValue, hasException, recreate, setAttachment, setAttachments, setException, setResult, setValue, toStringpublic DecodeableRpcResult(Channel channel, Response response, InputStream is, Invocation invocation, byte id)
public void encode(Channel channel, OutputStream output, Object message) throws IOException
Codecencode in interface Codecchannel - channel.output - output stream.message - message.IOExceptionpublic Object decode(Channel channel, InputStream input) throws IOException
Codecdecode in interface Codecchannel - channel.input - input stream.NEED_MORE_INPUT poison.IOExceptionCodec.NEED_MORE_INPUTpublic void decode()
throws Exception
decode in interface DecodeableExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.