ProtocolBufferConverter

public class ProtocolBufferConverter<MessageType extends Message> implements Converter<ByteBuffer>

Converter for protocol buffer generated messages.

Author

jmoringe

Parameters

<MessageType> – the protocol buffer type to convert

Constructors

ProtocolBufferConverter

public ProtocolBufferConverter(MessageType instance)

Constructor.

Parameters

instance – provide a default instance for the type to convert

Methods

deserialize

public UserData<MessageType> deserialize(String wireSchema, ByteBuffer buffer)

getSignature

public ConverterSignature getSignature()

serialize

public WireContents<ByteBuffer> serialize(Class<?> typeInfo, Object obj)