protected class MPerfRpc.MperfMarshaller extends Object implements Marshaller
Modifier | Constructor and Description |
---|---|
protected |
MperfMarshaller() |
Modifier and Type | Method and Description |
---|---|
int |
estimatedSize(Object arg)
Estimates the number of bytes needed to serialize an object to an output stream.
|
Object |
objectFromStream(DataInput in)
Creates an object from a stream
|
void |
objectToStream(Object obj,
DataOutput out)
Serializes an object to an output stream
|
public int estimatedSize(Object arg)
Marshaller
estimatedSize
in interface Marshaller
arg
- the object; argument to an RPC, or return value (could also be an exception). May be null (e.g. an
RPC returning void)public void objectToStream(Object obj, DataOutput out) throws Exception
Marshaller
objectToStream
in interface Marshaller
obj
- the object to be serializedout
- the output stream, created taking Marshaller.estimatedSize(Object)
into accountException
- thrown if serialization failedpublic Object objectFromStream(DataInput in) throws Exception
Marshaller
objectFromStream
in interface Marshaller
in
- the input streamException
- thrown if deserialization failedCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.