@InterfaceAudience.LimitedPrivate(value="RPC") public static class ProtobufRpcEngine.RpcResponseWrapper extends Object
and RPC
use type Writable as a wrapper to work across multiple RpcEngine kinds.| Constructor and Description |
|---|
ProtobufRpcEngine.RpcResponseWrapper() |
ProtobufRpcEngine.RpcResponseWrapper(com.google.protobuf.Message message) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public ProtobufRpcEngine.RpcResponseWrapper()
public ProtobufRpcEngine.RpcResponseWrapper(com.google.protobuf.Message message)
public void write(DataOutput out) throws IOException
Writableout.out - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.IOExceptionpublic int getLength()
Copyright © 2013 Apache Software Foundation. All rights reserved.