public class DecodeableRpcInvocation extends RpcInvocation implements Codec, Decodeable
NEED_MORE_INPUT| 构造器和说明 |
|---|
DecodeableRpcInvocation(Channel channel,
Request request,
InputStream is,
byte id) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
decode() |
Object |
decode(Channel channel,
InputStream input)
Decode message.
|
void |
encode(Channel channel,
OutputStream output,
Object message)
Encode message.
|
addAttachments, addAttachmentsIfAbsent, getArguments, getAttachment, getAttachment, getAttachments, getInvoker, getMethodName, getParameterTypes, setArguments, setAttachment, setAttachmentIfAbsent, setAttachments, setInvoker, setMethodName, setParameterTypes, toStringpublic DecodeableRpcInvocation(Channel channel, Request request, InputStream is, byte id)
public void decode()
throws Exception
decode 在接口中 DecodeableExceptionpublic void encode(Channel channel, OutputStream output, Object message) throws IOException
Codecencode 在接口中 Codecchannel - channel.output - output stream.message - message.IOExceptionpublic Object decode(Channel channel, InputStream input) throws IOException
Codecdecode 在接口中 Codecchannel - channel.input - input stream.NEED_MORE_INPUT poison.IOExceptionCodec.NEED_MORE_INPUTCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.